if (!(state instanceof StateImpl)) throw new IllegalArgumentException();
if (!(state instanceof UserState)) throw new IllegalArgumentException("Wrong state implementation");  if (installer == null) throw new IllegalArgumentException("PlatformAdmin.commit() not supported");
public synchronized void commit(State state) throws BundleException {		if (!(state instanceof StateImpl))			throw new IllegalArgumentException();		if (state.getTimeStamp() != systemState.getTimeStamp())			throw new BundleException(StateMsg.formatter.getString("COMMIT_INVALID_TIMESTAMP")); //$NON-NLS-1$		StateDelta delta = state.getChanges();		BundleDelta[] addedBundles = delta.getChanges(BundleDelta.ADDED, false);		for (int i = 0; i < addedBundles.length; i++)			systemState.addBundle(factory.createBundleDescription(addedBundles[i].getBundle()));		BundleDelta[] removedBundles = delta.getChanges(BundleDelta.REMOVED, false);		for (int i = 0; i < removedBundles.length; i++)			systemState.removeBundle(removedBundles[i].getBundle());			}	