Translator<Object, Object> translator = ctx.getTranslator(new TypeKey<>(prop), ctx, propPath);
PropertyPopulator<Object, Object> tprop = new PropertyPopulator<>(prop, translator);
props.add(tprop);
} catch (Exception ex) {
// Catch any errors during this process and wrap them in an exception that exposes more useful information.
propPath.throwIllegalState("Error registering " + clazz.getName(), ex);
}
}
}
// Find the @OnSave methods