private static void prepareRmiGC(){
  try {
    if (System.getProperty("sun.rmi.dgc.client.gcInterval") == null)     System.setProperty("sun.rmi.dgc.client.gcInterval","36000000");
    if (System.getProperty("sun.rmi.dgc.server.gcInterval") == null)     System.setProperty("sun.rmi.dgc.server.gcInterval","36000000");
  }
 catch (  Exception secExc) {
    if (logger.isLoggable(Level.WARNING)) {
      logger.log(Level.WARNING,"Failed to set sun.rmi.dgc.xxx system properties. \n",secExc);
    }
  }
}

private static void prepareRmiGC ( ) { try { if ( System . getProperty ( "sun.rmi.dgc.client.gcInterval" ) == null ) System . setProperty ( "sun.rmi.dgc.client.gcInterval" , "36000000" ) ; if ( System . getProperty ( "sun.rmi.dgc.server.gcInterval" ) == null ) System . setProperty ( "sun.rmi.dgc.server.gcInterval" , "36000000" ) ; } catch ( Exception secExc ) { if ( logger . isLoggable ( Level . WARNING ) ) { logger . log ( Level . WARNING , "Failed to set sun.rmi.dgc.xxx system properties. \n" , secExc ) ; } } }
check if the rmi gc system properties are been set , if not we set it to the recommended values .
