core/src/main/java/com/orientechnologies/orient/core/sql/OLiveCommandExecutorSQLFactory.java
public OCommandExecutorSQLAbstract createCommand(final String name) throws OCommandExecutionException {
    final Class<? extends OCommandExecutorSQLAbstract> clazz = COMMANDS.get(name);

    if (clazz == null) {
      throw new OCommandExecutionException("Unknowned command name :" + name);
    }

    try {
      return clazz.newInstance();
    } catch (Exception e) {
      throw OException.wrapException(new OCommandExecutionException("Error in creation of command " + name
          + "(). Probably there is not an empty constructor or the constructor generates errors"), e);
    }
  }
public OCommandExecutorSQLAbstract createCommand(final String name) throws OCommandExecutionException {
    final Class<? extends OCommandExecutorSQLAbstract> clazz = COMMANDS.get(name);

    if (clazz == null) {
      throw new OCommandExecutionException("Unknowned command name :" + name);
    }

    try {
      return clazz.newInstance();
    } catch (Exception e) {
      throw OException.wrapException(new OCommandExecutionException("Error in creation of command " + name
          + "(). Probably there is not an empty constructor or the constructor generates errors"), e);
    }
  }
public OCommandExecutorSQLAbstract createCommand ( final String name ) throws OCommandExecutionException { final Class < ? extends OCommandExecutorSQLAbstract > clazz = COMMANDS . get ( name ) ; if ( clazz == null ) { throw new OCommandExecutionException ( "Unknowned command name :" + name ) ; } try { return clazz . newInstance ( ) ; } catch ( Exception e ) { throw OException . wrapException ( new OCommandExecutionException ( "Error in creation of command " + name + "(). Probably there is not an empty constructor or the constructor generates errors" ) , e ) ; } }
{@inheritDoc}
{