if(PersistableObject.isSecurityEnabled()){
PersistableObject.checkSecurity(ObjectId.idForObject(source, "").getTarget(), PermissionLevel.APPEND_LEVEL.level);
}
PersistableObject result = PersistableObject.initObject(source);
result.onCreation();
Transaction.currentTransaction().addNewItem(result);
return result;
}
/**
* The creates a new JavaScript array. It will be persisted if it