String[] dummy = {""}; Collection certprofilenames = this.informationmemory.getAuthorizedEndEntityCertificateProfileNames().keySet(); if(certprofilenames == null) return new String[0];
String[] dummy = {""}; Collection certprofilenames = (Collection) this.informationmemory.getAuthorizedEndEntityCertificateProfileNames().keySet(); if(certprofilenames == null) return new String[0]; else
    public String[] getCertificateProfileNames(){        String[] dummy = {""};        Collection certprofilenames = this.informationmemory.getAuthorizedEndEntityCertificateProfileNames().keySet();        if(certprofilenames == null)            return new String[0];        return (String[]) certprofilenames.toArray(dummy);    }