synchronized static void ensureSecurityManager(){
  if (System.getSecurityManager() == null) {
    System.setSecurityManager(new RMISecurityManager());
  }
}

synchronized static void ensureSecurityManager ( ) { if ( System . getSecurityManager ( ) == null ) { System . setSecurityManager ( new RMISecurityManager ( ) ) ; } }
utility routine that sets a security manager if one isn ' t already present .
