private static String systemOrEnv(String name,String dflt){
  String res=System.getProperty(name);
  if (res == null)   res=System.getenv(name);
  return res != null ? res : dflt;
}

private static String systemOrEnv ( String name , String dflt ) { String res = System . getProperty ( name ) ; if ( res == null ) res = System . getenv ( name ) ; return res != null ? res : dflt ; }
get system property or environment variable with the given name .
