class ShortCircuitInterceptorCore {

    String generateKeyForMap(final WilmaHttpRequest wilmaHttpRequest) {
        String hashString = wilmaHttpRequest.getRequestLine() + " - " + wilmaHttpRequest.getBody().hashCode();
        //ensure that it is ok for a header
        //CHECKSTYLE OFF - we must use "new String" here
        hashString = new String(Base64.encodeBase64(hashString.getBytes()));
        //CHECKSTYLE ON
        return hashString;
    }

}