private static void initializeParams(){
  String cacheSize=SystemProperties.get(CACHE_MAX_SIZE_KEY,"10000");
  try {
    maxSize=Integer.parseInt(cacheSize);
    if (maxSize < 1) {
      maxSize=10000;
    }
    if (debug.messageEnabled()) {
      debug.message("CachedDirectoryServicesImpl.intializeParams() " + "Caching size set to: " + maxSize);
    }
  }
 catch (  NumberFormatException ne) {
    maxSize=10000;
    debug.warning("CachedDirectoryServicesImpl.initializeParams() " + "- invalid value for cache size specified. Setting " + "to default value: "+ maxSize);
  }
}

private static void initializeParams ( ) { String cacheSize = SystemProperties . get ( CACHE_MAX_SIZE_KEY , "10000" ) ; try { maxSize = Integer . parseInt ( cacheSize ) ; if ( maxSize < 1 ) { maxSize = 10000 ; } if ( debug . messageEnabled ( ) ) { debug . message ( "CachedDirectoryServicesImpl.intializeParams() " + "Caching size set to: " + maxSize ) ; } } catch ( NumberFormatException ne ) { maxSize = 10000 ; debug . warning ( "CachedDirectoryServicesImpl.initializeParams() " + "- invalid value for cache size specified. Setting " + "to default value: " + maxSize ) ; } }
method to check if caching is enabled or disabled and configure the size of the cache accordingly .
