log.warn("Failed to hash token - sending in clear text");
if(log.isWarnEnabled()){ log.warn("Failed to hash token - sending in clear text"); }
    private String hash(String token){        //perform the hashing of the token key        String hashedToken = null;        if(hash_type.equalsIgnoreCase("SHA")){            hashedToken = HashUtils.sha(token);        }else{            hashedToken = HashUtils.md5(token);        }        if(hashedToken == null){            //failed to encrypt            log.warn("Failed to hash token - sending in clear text");            return token;        }        return hashedToken;    }