public StateChangeEvent compare(State state) { throw new UnsupportedOperationException("not implemented");
public StateDelta compare(State state) {  if (!(state instanceof UserState)) throw new IllegalArgumentException("Wrong state implementation"); if (state.getTimeStamp() != this.getTimeStamp()) throw new IllegalArgumentException(StateMsg.formatter.getString("COMMIT_INVALID_TIMESTAMP")); StateDeltaImpl delta = new StateDeltaImpl(this); UserState userState = (UserState) state; Long[] allAdded = userState.getAllAdded(); for (int i = 0; i < allAdded.length; i++) { BundleDescription added = userState.getBundle(allAdded[i].longValue());  if (added != null) delta.recordBundleAdded((BundleDescriptionImpl) added); } Long[] allRemoved = userState.getAllRemoved(); for (int i = 0; i < allRemoved.length; i++) { long removedId = allRemoved[i].longValue(); BundleDescription removedFromUserState = userState.getBundle(removedId);  if (removedFromUserState == null) { BundleDescription existingSystemState = getBundle(removedId); if (existingSystemState != null) delta.recordBundleRemoved((BundleDescriptionImpl) removedFromUserState); } } Long[] allUpdated = userState.getAllUpdated(); for (int i = 0; i < allUpdated.length; i++) { BundleDescription updated = userState.getBundle(allUpdated[i].longValue());  if (updated != null) delta.recordBundleUpdated((BundleDescriptionImpl) updated); } return delta;
	public StateChangeEvent compare(State state) {		throw new UnsupportedOperationException("not implemented"); //$NON-NLS-1$	}