object/src/main/java/com/orientechnologies/orient/core/entity/OEntityManager.java
public synchronized Object createPojo(final String iClassName) throws OConfigurationException {
    if (iClassName == null)
      throw new IllegalArgumentException("Cannot create the object: class name is empty");

    final Class<?> entityClass = classHandler.getEntityClass(iClassName);

    try {
      if (entityClass != null)
        return createInstance(entityClass);

    } catch (Exception e) {
      throw OException.wrapException(new OConfigurationException("Error while creating new pojo of class '" + iClassName + "'"), e);
    }

    try {
      // TRY TO INSTANTIATE THE CLASS DIRECTLY BY ITS NAME
      return createInstance(Class.forName(iClassName));
    } catch (Exception e) {
      throw OException.wrapException(new OConfigurationException("The class '" + iClassName
          + "' was not found between the entity classes. Ensure registerEntityClasses(package) has been called first"), e);
    }
  }
public synchronized Object createPojo(final String iClassName) throws OConfigurationException {
    if (iClassName == null)
      throw new IllegalArgumentException("Cannot create the object: class name is empty");

    final Class<?> entityClass = classHandler.getEntityClass(iClassName);

    try {
      if (entityClass != null)
        return createInstance(entityClass);

    } catch (Exception e) {
      throw OException.wrapException(new OConfigurationException("Error while creating new pojo of class '" + iClassName + "'"), e);
    }

    try {
      // TRY TO INSTANTIATE THE CLASS DIRECTLY BY ITS NAME
      return createInstance(Class.forName(iClassName));
    } catch (Exception e) {
      throw OException.wrapException(new OConfigurationException("The class '" + iClassName
          + "' was not found between the entity classes. Ensure registerEntityClasses(package) has been called first"), e);
    }
  }
public synchronized Object createPojo ( final String iClassName ) throws OConfigurationException { if ( iClassName == null ) throw new IllegalArgumentException ( "Cannot create the object: class name is empty" ) ; final Class < ? > entityClass = classHandler . getEntityClass ( iClassName ) ; try { if ( entityClass != null ) return createInstance ( entityClass ) ; } catch ( Exception e ) { throw OException . wrapException ( new OConfigurationException ( "Error while creating new pojo of class '" + iClassName + "'" ) , e ) ; } try { // TRY TO INSTANTIATE THE CLASS DIRECTLY BY ITS NAME
 return createInstance ( Class . forName ( iClassName ) ) ; } catch ( Exception e ) { throw OException . wrapException ( new OConfigurationException ( "The class '" + iClassName + "' was not found between the entity classes. Ensure registerEntityClasses(package) has been called first" ) , e ) ; } }
Create a POJO by its class name.

@see #registerEntityClasses(String)
Create a POJO by its class name .