code: public boolean isTypeMatch(String commandId, Class targetType) {
          
          Assert.notNull(commandId, "commandId");
          Assert.notNull(targetType, "targetType");
          
          Class commandType = getType(commandId);
          
          if (commandType == null) {
              return false;
          }
          else {
              return ClassUtils.isAssignable(targetType, commandType);
          }
          
      }
docs: {@inheritDoc}