{
childProperties = pps.getProperties();
}
// get the correct translator for this field
PropertyTranslator translator = decoder(field, childProperties);
// get the type that we need to store
Type type = typeFromField(field);
onBeforeTranslate(field, childProperties);
// create instance
Object value;
try
{
value = translator.propertiesToTypesafe(childProperties, fieldPath, type);
}
catch (Exception e)
{
// add a bit of context to the trace
throw new IllegalStateException("Problem translating field " + field, e);