public static String getPropertyOrNull ( String name ) { try { return AccessController . doPrivileged ( new SystemPropertyAction ( name ) ) ; } catch ( SecurityException ex ) { LOG . log ( Level . FINE , "SecurityException raised getting property " + name , ex ) ; return null ; } }
Get the system property via the AccessController but if a SecurityException is raised just return null ;