*/
private void loadCertificateView(Collection<Certificate> certs, String username) {
if(!certs.isEmpty()){
ArrayList<Certificate> list = new ArrayList<Certificate>(certs);
if (certs.size() < 50) {
Collections.sort(list, new CertificateNotBeforeComparator());
} else {
log.debug("User has more than 50 certificates, we will not sort them");
}
Iterator<Certificate> j = list.iterator();
certificates = new CertificateView[list.size()];