question: 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 ) ; }
target:  Validate if the directory is a artemis.home 