private void optimizeStart ( ) { if ( configuration . isPayloadCache ( ) ) { if ( configuration . getOptimizerStoreClass ( ) == null ) { store = new CacheOptimizerStore ( ) ; store . start ( configuration ) ; return ; } try { store = ( OptimizerStore ) Class . forName ( configuration . getOptimizerStoreClass ( ) ) . newInstance ( ) ; store . start ( configuration ) ; } catch ( ClassNotFoundException cnfe ) { LOGGER . warn ( "Unable to find the class {}. The payload will be sent without optimizations." , configuration . getOptimizerStoreClass ( ) ) ; } catch ( InstantiationException ex ) { LOGGER . warn ( "Unable to instantiate the class {}. Concrete class required." , configuration . getOptimizerStoreClass ( ) ) ; } catch ( IllegalAccessException ex ) { LOGGER . warn ( "Unable to instantiate the class {}. Empty constructor required." , configuration . getOptimizerStoreClass ( ) ) ; } } }
Start the optimization