public static void checkSameHost(Path path,ExecutionSystem es){
  Host pathHost=Host.fromUri(path.toUri());
  Host esHost=Host.fromUri(es.uri());
  checkArgument(pathHost.equals(esHost),"path host (%s) must equal execution system host (%s)",pathHost,esHost);
}

public static void checkSameHost ( Path path , ExecutionSystem es ) { Host pathHost = Host . fromUri ( path . toUri ( ) ) ; Host esHost = Host . fromUri ( es . uri ( ) ) ; checkArgument ( pathHost . equals ( esHost ) , "path host (%s) must equal execution system host (%s)" , pathHost , esHost ) ; }
ensures that the given path and execution system refer to the same host .
