return bmd.getName();
}
void cleanup()
{
MutableMetaDataRepository repository = null;
DeploymentUnit unit = parent;
while (repository == null && unit != null)
{
repository = unit.getAttachment(MutableMetaDataRepository.class);
unit = parent.getParent();
}
if (repository == null)
{
return;
}
try
{
ScopeKey scope = getScope();
repository.removeMetaDataRetrieval(scope);
}
catch (Throwable ignored)
{
}
try
{
ScopeKey scope = getMutableScope();
repository.removeMetaDataRetrieval(scope);
}
catch (Throwable ignored)
{
}
}