protected void putCommand(final Class commandClass,final String[] names){
  Check.isTrue(names.length > 0,"names.length > 0");
  _commandsToCanonicalNames.put(commandClass,names[0]);
  for (int i=0; i < names.length; i++) {
    _aliasesToCommands.put(names[i],commandClass);
  }
}

protected void putCommand ( final Class commandClass , final String [ ] names ) { Check . isTrue ( names . length > 0 , "names.length > 0" ) ; _commandsToCanonicalNames . put ( commandClass , names [ 0 ] ) ; for ( int i = 0 ; i < names . length ; i ++ ) { _aliasesToCommands . put ( names [ i ] , commandClass ) ; } }
add a command in the hash map .
