code: private static void containGetOrIsMethod(ValidateClass vo, String getOrIs,
        ConfigProperty cpmd, String section, String failMsg, List<Failure> failures)
        throws NoSuchMethodException
     {
        String methodName = getOrIs + cpmd.getConfigPropertyName().getValue().substring(0, 1).toUpperCase(Locale.US);
        if (cpmd.getConfigPropertyName().getValue().length() > 1)
        {
           methodName += cpmd.getConfigPropertyName().getValue().substring(1);
        }
  
        Method method = SecurityActions.getMethod(vo.getClazz(), methodName, (Class[])null);
  
        if (!VALID_TYPES.contains(method.getReturnType()))
        {
           StringBuilder sb = new StringBuilder("Class: " + vo.getClazz().getName());
           sb = sb.append(" Property: " + cpmd.getConfigPropertyName().getValue());
           sb = sb.append(" Type: " + method.getReturnType().getName());
  
           Failure failure;
           if (WARNING_TYPES.contains(method.getReturnType()))
           {
              failure = new Failure(Severity.WARNING,
                                    section,
                                    failMsg,
                                    sb.toString());
           }
           else
           {
              failure = new Failure(Severity.ERROR,
                    section,
                    failMsg,
                    sb.toString());
           }
           failures.add(failure);
        }
     }
docs: validated object contain 'get or 'is' Method
  
  @param vo ValidateClass
  @param getOrIs 'get or 'is' String
  @param cpmd ConfigProperty metadata
  @param section section in the spec document
  @param failMsg fail or warn message
  @param failures list of failures
  @throws NoSuchMethodException