String ejbName = beanMetaData.getEjbName();
String ejbBeanName = identifier.identifyEJB(unit, ejbName);
String name = resolver.resolve(unit, ejbName);
BeanMetaDataBuilder builder = BeanMetaDataBuilderFactory.createBuilder(name, EndpointImpl.class.getName());
builder.addPropertyMetaData("container", builder.createInject(ejbBeanName));
BeanMetaData bmd = builder.getBeanMetaData();
log.debug("Deploy " + bmd);
unit.addAttachment(BeanMetaData.class + ":" + name, bmd);
}