code: private ShellCommand getCommandForLine(final String line) {
  
  		final int pos                             = line.indexOf(" ");
  		final String commandString                = pos > 0 ? line.substring(0, pos) : line;
  		final Class<? extends ShellCommand> clazz = commands.get(commandString);
  
  		if (clazz != null) {
  
  			try {
  
  				return clazz.newInstance();
  
  			} catch (Throwable t) {
  				logger.warn("", t);
  			}
  		}
  
  		return null;
  	}
docs: ----- private methods -----