logger.debug("X.509 Cache hit. SubjectDN: " + userCert.getSubjectDN());
String subjectDN = "unknown";  if ((userCert != null) && (userCert.getSubjectDN() != null)) { subjectDN = userCert.getSubjectDN().toString(); }  logger.debug("X.509 Cache hit. SubjectDN: " + subjectDN);
    public UserDetails getUserFromCache(X509Certificate userCert) {        Element element = null;        try {            element = cache.get(userCert);        } catch (CacheException cacheException) {            throw new DataRetrievalFailureException("Cache failure: "                + cacheException.getMessage());        }        if (logger.isDebugEnabled()) {            logger.debug("X.509 Cache hit. SubjectDN: "                + userCert.getSubjectDN());        }        if (element == null) {            return null;        } else {            return (UserDetails) element.getValue();        }    }