if(source == null){
result = new PersistableObject();
ScriptRuntime.setObjectProtoAndParent((ScriptableObject) result, GlobalData.getGlobalScope());
return result;
}
SourceInfo info = DataSourceManager.getObjectsClass(source);
if (info.objectsClass !=null)
try {
result = (PersistableObject) info.objectsClass.newInstance();
} catch (Exception e) {
throw new RuntimeException(e);