RelationPropertyManager<Entity, Relation> relationPropertyManager = sessionContext.getRelationPropertyManager();
PropertyMethod propertyMethod = (PropertyMethod) typeMethod;
Method method = propertyMethod.getAnnotatedElement();
if (methodMetadata instanceof PrimitivePropertyMethodMetadata) {
if (propertyMethod instanceof GetPropertyMethod) {
addProxyMethod(new PrimitivePropertyGetMethod(relationPropertyManager, (PrimitivePropertyMethodMetadata) methodMetadata), method);
} else if (propertyMethod instanceof SetPropertyMethod) {
addProxyMethod(new PrimitivePropertySetMethod(relationPropertyManager, (PrimitivePropertyMethodMetadata) methodMetadata), method);
}
} else if (methodMetadata instanceof EntityReferencePropertyMethodMetadata) {
if (propertyMethod instanceof GetPropertyMethod) {