cat.error("Can't decode certificate.", ioe);
log.error("Can't decode certificate.", ioe);
    public Certificate getCertificate() {        X509Certificate cert = null;        try {            cert = CertTools.getCertfromByteArray(Base64.decode(getBase64Cert().getBytes()));        } catch (IOException ioe) {            cat.error("Can't decode certificate.", ioe);            return null;        } catch (CertificateException ce) {            cat.error("Can't decode certificate.", ce);            return null;        }        return cert;    }