code: private String findLoggingProfile(final ResourceRoot resourceRoot) {
          final Manifest manifest = resourceRoot.getAttachment(Attachments.MANIFEST);
          if (manifest != null) {
              final String loggingProfile = manifest.getMainAttributes().getValue(LOGGING_PROFILE);
              if (loggingProfile != null) {
                  LoggingLogger.ROOT_LOGGER.debugf("Logging profile '%s' found in '%s'.", loggingProfile, resourceRoot);
                  return loggingProfile;
              }
          }
          return null;
      }
docs: Find the logging profile attached to any resource.
  
  @param resourceRoot the root resource
  
  @return the logging profile name or {@code null} if one was not found