code: public static boolean isValidHomeDirectory(final Path path) {
          return path != null
                  && Files.exists(path)
                  && Files.isDirectory(path)
                  && Files.exists(path.resolve("jboss-modules.jar"));
      }
docs: Checks whether or not the directory is a valid home directory for a server.
  <p>
  This validates the path is not {@code null}, exists, is a directory and contains a {@code jboss-modules.jar}.
  </p>
  
  @param path the path to validate
  
  @return {@code true} if the path is valid otherwise {@code false}