code: private VirtualFile findConfigFile(final VirtualFile file) throws DeploymentUnitProcessingException {
          VirtualFile result = null;
          try {
              final List<VirtualFile> configFiles = file.getChildren(ConfigFilter.INSTANCE);
              for (final VirtualFile configFile : configFiles) {
                  final String fileName = configFile.getName();
                  if (DEFAULT_PROPERTIES.equals(fileName) || JBOSS_PROPERTIES.equals(fileName)) {
                      if (result != null) {
                          LoggingLogger.ROOT_LOGGER.debugf("The previously found configuration file '%s' is being ignored in favour of '%s'", result, configFile);
                      }
                      return configFile;
                  } else if (LOG4J_PROPERTIES.equals(fileName) || LOG4J_XML.equals(fileName) || JBOSS_LOG4J_XML.equals(fileName)) {
                      result = configFile;
                  }
              }
          } catch (IOException e) {
              throw LoggingLogger.ROOT_LOGGER.errorProcessingLoggingConfiguration(e);
          }
          return result;
      }
docs: Finds the configuration file to be used and returns the first one found.
  <p/>
  Preference is for {@literal logging.properties} or {@literal jboss-logging.properties}.
  
  @param file the file to check
  
  @return the configuration file if found, otherwise {@code null}
  
  @throws DeploymentUnitProcessingException if an error occurs.