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

private static void initializeParams ( ) { String cacheSize = SystemProperties . get ( CACHE_MAX_SIZE_KEY , CACHE_MAX_SIZE ) ; try { maxSize = Integer . parseInt ( cacheSize ) ; if ( maxSize < 1 ) { maxSize = CACHE_MAX_SIZE_INT ; } if ( DEBUG . messageEnabled ( ) ) { DEBUG . message ( "IdRemoteCachedServicesImpl." + "intializeParams() Caching size set to: " + maxSize ) ; } } catch ( NumberFormatException ne ) { maxSize = CACHE_MAX_SIZE_INT ; if ( DEBUG . warningEnabled ( ) ) { DEBUG . warning ( "IdRemoteCachedServicesImpl.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 .
