}
}
Object source = beanDef.getSource();
if (source instanceof StandardMethodMetadata) {
StandardMethodMetadata metadata = (StandardMethodMetadata) source;
return metadata.getIntrospectedMethod().getReturnType();
}
//throw new IllegalStateException("could not find the type for bean named " + name);
return null;
}