* This is because BeanProvider.injectFields() does not invoke the onInjectionTarget() method so the injection
* of @Produce / @EndpointInject and processing of the @Consume annotations are not performed.
*/
public void inject(Object bean) {
Class<?> beanClass = bean.getClass();
ContextName contextName = beanClass.getAnnotation(ContextName.class);
final BeanAdapter adapter = createBeanAdapter(beanClass, contextName);
if (!adapter.isEmpty()) {
// TODO this is a bit of a hack - what should the bean name be?
final String beanName = bean.toString();
adapter.inject(this, bean, beanName);