code: @Override
  	public void saveChanges() throws WriteSessionException {
  		checkState(this.status.equals(Status.ACTIVE),WRITE_SESSION_NOT_ACTIVE,this.status);
  		this.status=Status.COMPLETED;
  		for(Entry<ResourceId, DelegatedResourceSnapshot> entry:this.resourceCache.entrySet()) {
  			DelegatedResourceSnapshot resource = entry.getValue();
  			resource.saveChanges();
  		}
  		this.writeSessionService.commitSession(this);
  	}
docs: {@inheritDoc}