code: static String getLoggingProfileName(final PathAddress address) {
          for (PathElement pathElement : address) {
              if (CommonAttributes.LOGGING_PROFILE.equals(pathElement.getKey())) {
                  return pathElement.getValue();
              }
          }
          return null;
      }
docs: Gets the logging profile name. If the address is not in a logging profile path, {@code null} is returned.
  
  @param address the address to check for the logging profile name
  
  @return the logging profile name or {@code null}