docs: public void validatePersonLookup(PersonQuery personQuery, MessageContext context) {
          final RequestContext requestContext = RequestContextHolder.getRequestContext();
          final ExternalContext externalContext = requestContext.getExternalContext();
          final Set<String> queryAttributes = personLookupHelper.getQueryAttributes(externalContext);
  
          final Map<String, Attribute> attributes = personQuery.getAttributes();
          for (final String attribute : attributes.keySet()) {
              if (!queryAttributes.contains(attribute)) {
                  final MessageBuilder messageBuilder = new MessageBuilder();
                  messageBuilder.error();
                  messageBuilder.source("attributes[" + attribute + "].value");
                  messageBuilder.code("personLookup.invalidQueryAttribute");
                  messageBuilder.arg(attribute);
  
                  final MessageResolver errorMessage = messageBuilder.build();
                  context.addMessage(errorMessage);
              }
          }
      }