if (methodMetadata instanceof ResultOfMethodMetadata) {
ResultOfMethodMetadata resultOfMethodMetadata = (ResultOfMethodMetadata) methodMetadata;
addProxyMethod(new ResultOfMethod(resultOfMethodMetadata, instanceManager, cdoTransaction, interceptorFactory, datastoreSession), typeMethod.getAnnotatedElement());
}
if (methodMetadata instanceof AbstractPropertyMethodMetadata) {
PropertyMethod beanPropertyMethod = (PropertyMethod) typeMethod;
Method method = beanPropertyMethod.getAnnotatedElement();
if (methodMetadata instanceof PrimitivePropertyMethodMetadata) {
if (beanPropertyMethod instanceof GetPropertyMethod) {
addProxyMethod(new PrimitivePropertyGetMethod((PrimitivePropertyMethodMetadata) methodMetadata, instanceManager, propertyManager), method);
} else if (beanPropertyMethod instanceof SetPropertyMethod) {
addProxyMethod(new PrimitivePropertySetMethod((PrimitivePropertyMethodMetadata) methodMetadata, instanceManager, propertyManager), method);