Object elementToRemove = element;
ObjectManager om = sm.getObjectManager();
if (om.getApiAdapter().isDetached(element))
{
// Element passed in is detached so find attached version (DON'T attach this object)
elementToRemove = om.findObject(om.getApiAdapter().getIdForObject(element), true, false,
element.getClass().getName());
}
boolean modified = getSpecialization().remove(sm, elementToRemove, size, this);
CollectionMetaData collmd = ownerMemberMetaData.getCollection();