public static PriceUtils getPriceUtils ( ) { if ( priceUtils == null ) { try { Class clazz = Class . forName ( PRICE_UTILS ) ; priceUtils = ( PriceUtils ) clazz . newInstance ( ) ; } catch ( ClassNotFoundException | InstantiationException | IllegalAccessException e ) { LOGGER . warn ( "Cannot instanciate util: {}" , e . getMessage ( ) ) ; throw new IllegalStateException ( e ) ; } } return priceUtils ; }
Retrieve PriceUtils implementation