break;
case IModelElement.SCRIPT_FOLDER:
deleteScriptFolder((IScriptFolder) element);
break;
default:
throw new ModelException(new ModelStatus(
IModelStatusConstants.INVALID_ELEMENT_TYPES, element));
}
// ensure the element is closed
if (element instanceof IOpenable) {
((IOpenable) element).close();