throw new IllegalArgumentException("null attachment");
if(component == null)
throw new IllegalArgumentException("null component");
// Check what we need to do
ModificationInfo modification = component.getModificationInfo();
if(modification == null)
modification = ModificationInfo.MODIFIED;
switch(modification)
{
case ADDED: