/* */ protected ConsumerContainer getConsumerContainer(int ejbIndex)
/* */ throws Exception
/* */ {
/* 549 */ String ejbName = (String)this.ejbNames.get(ejbIndex);
/* */
/* 551 */ JBossConsumerBeanMetaData consumer = (JBossConsumerBeanMetaData)this.ejbs.get(ejbIndex);
/* */
/* 553 */ ConsumerContainer container = super.getConsumerContainer(ejbIndex);
/* 554 */ ConsumerImpl annotation = new ConsumerImpl((Consumer)container.resolveAnnotation(Consumer.class));
/* */
/* 557 */ container.setAssemblyDescriptor(this.dd.getAssemblyDescriptor());
/* */
/* 559 */ if ((consumer != null) && (!isAnnotatedBean()))
/* */ {
/* 561 */ if (consumer.getMessageDestination() != null)
/* */ {
/* 563 */ ActivationConfigPropertyImpl property = new ActivationConfigPropertyImpl("destination", consumer.getMessageDestination());
/* */
/* 565 */ annotation.addActivationConfig(property);
/* */ }
/* */
/* 568 */ if (consumer.getMessageDestinationType() != null)
/* */ {
/* 570 */ ActivationConfigPropertyImpl property = new ActivationConfigPropertyImpl("destinationType", consumer.getMessageDestinationType());
/* */
/* 572 */ annotation.addActivationConfig(property);
/* */ }
/* */
/* 575 */ addClassAnnotation(container, Consumer.class, annotation);