*/
public Map<String, JavaElementImpl> introspectBean(Class<?> beanClass, ComponentType componentType)
throws ContributionResolveException {
if (componentType == null)
throw new ContributionResolveException("Introspect Spring bean: supplied componentType is null");
// Create a Java implementation ready for the introspection
JavaImplementation javaImplementation = javaImplementationFactory.createJavaImplementation();
try {
// Introspect the bean...the results of the introspection are placed into the Java implementation
javaImplementationFactory.createJavaImplementation(javaImplementation, beanClass);
// Extract the services, references & properties found through introspection
// put the services, references and properties into the component type
componentType.getServices().addAll(javaImplementation.getServices());
componentType.getReferences().addAll(javaImplementation.getReferences());
componentType.getProperties().addAll(javaImplementation.getProperties());
} catch (IntrospectionException e) {
throw new ContributionResolveException(e);
} // end try
//List<Service> services = javaImplementation.getServices();
//for (Service service : services) {
//String name = service.getName();