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