FilePersistenceInvalidClassException,
FilePersistenceDataCorruptedException,
FilePersistenceNotSerializableException {
final IInstanceFactory instanceFactory = session.getInstanceFactory();
session.open();
final PTreeMap<String, KeyDef> map = (PTreeMap<String, KeyDef>) instanceFactory
.newInstance(PTreeMap.class);
map.put(KEY_DEF_1.getName(), KEY_DEF_1);
map.put(KEY_DEF_2.getName(), KEY_DEF_2);
final Iterator<Entry<String, KeyDef>> iterator = map.entrySet()
.iterator();