AopMetaDataDeployerOutput output = new AopMetaDataDeployerOutput();
unit.addAttachment(AopMetaDataDeployerOutput.class, output);
if (extractAopBeanMetaDataFactories(unit, deployment, output))
{
AspectManager correctManager = unit.getAttachment(AspectManager.class);
log.debug("Got AspectManager attachment " + correctManager + " for " + unit);
if (correctManager != aspectManager)
{
int sequence = getSequence();
String scopedManagerName = registerScopedManagerBean(sequence, unit, correctManager, output);