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