/** * This method retrieves a list of certificate wrappers * * @return a list of certificate wrappers */ public List<CertificateWrapper> getUsedCertificates() { if (usedCertificates == null) { usedCertificates = new ArrayList<CertificateWrapper>(); List<XmlCertificate> xmlCertificates = wrapped.getUsedCertificates(); if (Utils.isCollectionNotEmpty(xmlCertificates)) { for (XmlCertificate certificate : xmlCertificates) { usedCertificates.add(new CertificateWrapper(certificate)); } } } return usedCertificates; }