public DocumentRef FindByAttribute(string attributeName, object value)
{
if (value is BaseObject)
{
value = (value as BaseObject).Ptr;
}
object ptr = InvokeV8Method("FindByAttribute", attributeName, value);
return ptr != null ? new DocumentRef(Session, DocumentName, ptr) : null;
}