private static ObjectClassDefinition restoreDefinition(Persistor p) {
String oid = p.getString(OID);
String name = p.getString(NAME);
String desc = p.getString(DESCRIPTION);
ObjectClassType type;
try {
type = ObjectClassType.valueOf(p.getString(TYPE));
} catch (RuntimeException ex) {
type = ObjectClassType.STRUCTURAL;
}