code: public Class getType(String commandId) {
          
          Assert.notNull(commandId, "commandId");
          
          Object command = getCommand(commandId);
          
          if (command == null) {
              return null;
          }
          else {
              return command.getClass();
          }
          
      }
docs: {@inheritDoc}