private boolean lookupHome(Path path){
  if (path == null) {
    return false;
  }
  Path binFolder=path.resolve("bin");
  if (binFolder == null && Files.exists(binFolder,LinkOption.NOFOLLOW_LINKS)) {
    return false;
  }
  Path artemisScript=binFolder.resolve("artemis");
  return artemisScript != null && Files.exists(artemisScript,LinkOption.NOFOLLOW_LINKS);
}

private boolean lookupHome ( Path path ) { if ( path == null ) { return false ; } Path binFolder = path . resolve ( "bin" ) ; if ( binFolder == null && Files . exists ( binFolder , LinkOption . NOFOLLOW_LINKS ) ) { return false ; } Path artemisScript = binFolder . resolve ( "artemis" ) ; return artemisScript != null && Files . exists ( artemisScript , LinkOption . NOFOLLOW_LINKS ) ; }
validate if the directory is a artemis . home
