if ((isNew || currentState[i] != previousState[i])
&& !(currentState[i] instanceof Organization)
&& (currentState[i] instanceof BaseOBObject || currentState[i] instanceof HibernateProxy)
&& currentState[i] instanceof OrganizationEnabled) {
// get the organization from the current state
final OrganizationEnabled oe = (OrganizationEnabled) currentState[i];
final Organization o2 = oe.getOrganization();
if (!obContext.getOrganizationStructureProvider(o1.getClient().getId()).isInNaturalTree(o1,
o2)) {
throw new OBSecurityException("Entity " + bob.getIdentifier() + " ("
+ bob.getEntityName() + ") with organization " + o1.getIdentifier()