code: public static JsonInputValidator getValidator(Class<?> clazz) {
          if (clazz.equals(Scope.class)) {
              return ScopeValidator.getInstance();
          }
          if (clazz.equals(ApplicationInfo.class)) {
              return ApplicationInfoValidator.getInstance();
          }
          return null;
      }
docs: Instantiates a validator depending on the class passed as a parameter.
  @param clazz the class the input will be validated to
  @return JsonInputValidator