}
@Override
public JBossConsumerBeanMetaData create(Class<?> beanClass)
{
Consumer annotation = finder.getAnnotation(beanClass, Consumer.class);
if(annotation == null)
return null;
JBossConsumerBeanMetaData metaData = new JBossConsumerBeanMetaData();
metaData.setEjbClass(beanClass.getName());
if(annotation.name().length() > 0)
metaData.setEjbName(annotation.name());
else
metaData.setEjbName(beanClass.getSimpleName());
ActivationConfigProperty[] props = annotation.activationConfig();
ActivationConfigMetaData config = new ActivationConfigMetaData();
ActivationConfigPropertiesMetaData configProps = new ActivationConfigPropertiesMetaData();
config.setActivationConfigProperties(configProps);
for(ActivationConfigProperty prop : props)
{