private boolean customLog4jConfigFilePresent() {
    return Stream.of("LOG4J_CONFIGURATION_FILE", "log4j.configurationFile")
        .flatMap(
            configFileKey ->
                Stream.of(System.getenv(configFileKey), System.getProperty(configFileKey)))
        .flatMap(Stream::ofNullable)
        .findFirst()
        .isPresent();
  }
Instantiates a new Xml extension configuration.

@param loggerContext the logger context
@param configSource the Configuration Source
app/src/main/java/org/hyperledger/besu/cli/logging/XmlExtensionConfiguration.java