code: public <RET extends Object> RET newInstance(final String iClassName, final Object iEnclosingClass, Object... iArgs) {
  		checkSecurity(ODatabaseSecurityResources.CLASS, ORole.PERMISSION_CREATE, iClassName);
  
  		try {
  			RET enhanced = (RET) OObjectEntityEnhancer.getInstance().getProxiedInstance(entityManager.getEntityClass(iClassName),
  					iEnclosingClass, underlying.newInstance(iClassName), iArgs);
  			return (RET) enhanced;
  		} catch (Exception e) {
  			OLogManager.instance().error(this, "Error on creating object of class " + iClassName, e, ODatabaseException.class);
  		}
  		return null;
  	}
docs: Create a new POJO by its class name. Assure to have called the registerEntityClasses() declaring the packages that are part of
  entity classes.
  
  @see OEntityManager.registerEntityClasses(String)