HashMap data = getData();
// If EndEntityProfile-data is upgraded we want to save the new data, so we must get the old version before loading the data
// and perhaps upgrading
float oldversion = ((Float) data.get(UpgradeableDataHashMap.VERSION)).floatValue();
// Load the profile data, this will potentially upgrade the CertificateProfile
returnval.loadData(data);
if (Float.compare(oldversion, returnval.getVersion()) != 0) {
// Save new data versions differ
setProfile(returnval);
if (log.isDebugEnabled()) {
log.debug("Saved upgraded profile, old version="+oldversion+", new version="+returnval.getVersion());