*/
protected <T> T getAttachment(DeploymentUnit unit, Class<T> type)
{
if (forceHierarchyLookup == false && isComponentsOnly() && (unit instanceof LocalAttachments))
{
LocalAttachments la = (LocalAttachments) unit;
return la.getLocalAttachment(type);
}
return unit.getAttachment(type);
}