JBossMetaData jbossMetaData = MetaDataHelper.getMetaDataFromBeanImplClasses(beanImplementationClasses);
unit.addAttachment(AttachmentNames.PROCESSED_METADATA, jbossMetaData);
String ejbName = "TXNotSupportedMDB";
JBossMessageDrivenBeanMetaData beanMetaData = (JBossMessageDrivenBeanMetaData) jbossMetaData.getEnterpriseBean(ejbName);
Domain domain = getDomain("Message Driven Bean");
ClassLoader cl = deploymentUnit.getClassLoader();
String beanClassName = beanMetaData.getEjbClass();
Properties ctxProperties = null;
container = new MyMDB(ejbName, domain, cl, beanClassName, ctxProperties, deployment, beanMetaData);