{
Parent parent = field.getAnnotation(Parent.class);
if (parent != null && parent.value() != Parent.FilterPolicy.RetainKey)
return new ParentRelationshipEncoder(field.getName());
else
return new RelationshipEncoder(field.getName(), propertyName, field.isAnnotationPresent(Child.class), index);
}
}
});
}