public BeanMetadataReference getBeanMetadataReference(IBeanMetadata metadata, IBeansProject project) {
if (metadata instanceof RequestMappingAnnotationMetadata) {
return new RequestMappingBeanMetadataReference(project, metadata.getKey());
}
return new BeanMetadataReference(project, metadata.getKey());
}