// but do not need to worry about clean up in that case as the entire session will be cleaned up
if (session == null)
return;
// remove from Session if reference count is zero
int refCount = (mb != null) ? mb.decrementAttributeIdRefCount(attributeId) : 0;
if (refCount <= 0)
{
// remove assembler from servlet context
session.removeAttribute(attributeId);
}