EndEntityProfile eprofile = null;
FileInputStream is = new FileInputStream(infiles[i]);
XMLDecoder decoder = new XMLDecoder( is );
if (entityprofile) {
eprofile = new EndEntityProfile();
eprofile.loadData(decoder.readObject());
// Translate cert profile ids that have changed after import
String availableCertProfiles = "";
String defaultCertProfile = eprofile.getValue(EndEntityProfile.DEFAULTCERTPROFILE,0);
//getLogger().debug("Debug: Org - AVAILCERTPROFILES " + eprofile.getValue(EndEntityProfile.AVAILCERTPROFILES,0) + " DEFAULTCERTPROFILE "+defaultCertProfile);
for (String currentCertProfile : (Collection<String>) eprofile.getAvailableCertificateProfileIds()) {