code: @Override
      protected void onPersist(EntityMetadata entityMetadata, Object entity, Object id, List<RelationHolder> rlHolders)
      {
          MetamodelImpl metaModel = (MetamodelImpl) kunderaMetadata.getApplicationMetadata().getMetamodel(
                  entityMetadata.getPersistenceUnit());
  
          AbstractManagedType managedType = (AbstractManagedType) metaModel.entity(entityMetadata.getEntityClazz());
  
          if (managedType.hasLobAttribute())
          {
              onPersistGFS(entity, id, entityMetadata, isUpdate);
          }
  
          else
          {
              Map<String, List<DBObject>> collections = new HashMap<String, List<DBObject>>();
              collections = onPersist(collections, entity, id, entityMetadata, rlHolders, isUpdate);
              onFlushCollection(collections);
          }
      }
docs: /*
  (non-Javadoc)
  
  @see
  com.impetus.kundera.client.ClientBase#onPersist(com.impetus.kundera.metadata
  .model.EntityMetadata, java.lang.Object, java.lang.Object,
  java.util.List)