logentrydata[CERTIFICATE] = dn.getField(DNFieldExtractor.COMMONNAME,0) + ", " + dn.getField(DNFieldExtractor.ORGANIZATION,0);
logentrydata[CERTIFICATE] = dn.getField(DNFieldExtractor.CN,0) + ", " + dn.getField(DNFieldExtractor.O,0);
    public void setValues(LogEntry logentry,  String[] localinfoeventnames, String[] localerroreventnames,String[] localmodulenames) throws RemoteException{               logentrydata[TIME] = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT).format(logentry.getTime());       this.time = logentry.getTime();             logentrydata[ADMINTYPE] = Integer.toString(logentry.getAdminType());       if(logentry.getAdminType() == Admin.TYPE_CLIENTCERT_USER){          String dnstring = dnproxy.getSubjectDN(logentry.getAdminData());          if(dnstring !=null){            DNFieldExtractor dn = new DNFieldExtractor(dnstring, DNFieldExtractor.TYPE_SUBJECTDN);                       logentrydata[ADMINCERTSERNO] = logentry.getAdminData();            logentrydata[ADMINDATA] = dn.getField(DNFieldExtractor.COMMONNAME,0) + ", " + dn.getField(DNFieldExtractor.ORGANIZATION,0);          }         }else{          if(logentry.getAdminType() == Admin.TYPE_PUBLIC_WEB_USER){            if(logentry.getAdminData() != null)                         logentrydata[ADMINDATA] = "IP : " + logentry.getAdminData();             if(logentrydata[ADMINDATA] == null)             logentrydata[ADMINDATA] = "";                        }else{                if(logentry.getAdminData() != null)                         logentrydata[ADMINDATA] = logentry.getAdminData();             if(logentrydata[ADMINDATA] == null)             logentrydata[ADMINDATA] = "";          }         }                   logentrydata[MODULE] = localmodulenames[logentry.getModule()];                logentrydata[USERNAME] = logentry.getUsername();       if(logentrydata[USERNAME] != null && logentrydata[USERNAME].trim().equals(""))         logentrydata[USERNAME] = null;         logentrydata[CERTIFICATESERNO] = logentry.getCertificateSNR();       if(logentry.getCertificateSNR() != null)          if(logentry.getCertificateSNR().trim().equals(""))            logentrydata[CERTIFICATESERNO] = null;         else               logentrydata[CERTIFICATESERNO] = logentry.getCertificateSNR();                if(logentrydata[CERTIFICATESERNO] != null){          String dnstring = dnproxy.getSubjectDN(logentry.getCertificateSNR());           if(dnstring != null){            DNFieldExtractor dn = new DNFieldExtractor(dnstring, DNFieldExtractor.TYPE_SUBJECTDN);             logentrydata[CERTIFICATE] = dn.getField(DNFieldExtractor.COMMONNAME,0) + ", " + dn.getField(DNFieldExtractor.ORGANIZATION,0);          }         }              if(logentry.getEvent() < LogEntry.EVENT_ERROR_BOUNDRARY)         logentrydata[EVENT] = localinfoeventnames[logentry.getEvent()];       else         logentrydata[EVENT] = localerroreventnames[logentry.getEvent() - LogEntry.EVENT_ERROR_BOUNDRARY];                       logentrydata[COMMENT] = logentry.getComment();           }