public static boolean boolValue(String propName,boolean dflt){
  String sysProp=getProperty(propName);
  return (sysProp != null && !sysProp.isEmpty()) ? Boolean.getBoolean(sysProp) : dflt;
}

public static boolean boolValue ( String propName , boolean dflt ) { String sysProp = getProperty ( propName ) ; return ( sysProp != null && ! sysProp . isEmpty ( ) ) ? Boolean . getBoolean ( sysProp ) : dflt ; }
returns boolean value from system property or provided function .
