331332333334335336337338339340341
if (command == null) { return null; } if (requiredType != null && !ClassUtils.isAssignableValue(requiredType, command)) { throw new CommandNotOfRequiredTypeException(commandId, requiredType, command.getClass()); } return command; }