protected ConsumerContainer getConsumerContainer(int ejbIndex, JBossConsumerBeanMetaData consumer)
throws Exception
{
String ejbName = ejbNames.get(ejbIndex);
ConsumerContainer container = super.getConsumerContainer(ejbIndex, consumer);
ConsumerImpl annotation = new ConsumerImpl((Consumer) container
.resolveAnnotation(Consumer.class));
container.setAssemblyDescriptor(dd.getAssemblyDescriptor());
if (consumer != null && !isAnnotatedBean())
{
if (consumer.getMessageDestination() != null)
{