code: private boolean containsCloudTrailValidationMessage(CloudTrailSource ctSource) {
          if (ctSource == null){
             return false;
          }
  
          SourceType sourceType = SourceType.valueOf(ctSource.getSourceAttributes().get(SourceAttributeKeys.SOURCE_TYPE.getAttributeKey()));
          return sourceType == SourceType.CloudTrailValidationMessage;
      }
docs: Check whether <code>ctSource</code> contains CloudTrail validation message.
  @param ctSource a {@link CloudTrailSource}.
  @return <code>true</code> if contains CloudTrail validation message, <code>false</code> otherwise.