public void removeTransientPackage() {
XPDLHandler xpdlh = JaWEManager.getInstance().getXPDLHandler();
Package toRemove = XMLUtil.getPackage(getSelectionManager().getSelectedElement());
try {
XPDLListenerAndObservable xpdllo = getXPDLListenerObservable(toRemove);
xpdllo.unregisterFromXPDL();
xpdlListenerObservables.remove(xpdllo);
xpdlh.closePackageVersion(toRemove.getId(), toRemove.getInternalVersion());
setChanged();
List pkgsToRemove = new ArrayList();
pkgsToRemove.add(toRemove);