code: @Override
  	public void subscriptionNotification(XcapDiff xcapDiff,
  			SubscriptionStatus status) {
  		tracer.info("subscriptionNotification( xcap diff = " + xcapDiff
  				+ ", subscrption status = " + status + ")");
  		if (status == SubscriptionStatus.active) {
  			if (getStateMachine() == null) {
  				tracer.info("subscription activated, creating doc");
  				setStateMachine(StateMachine.created);
  				putDocument(false);
  			} else if (getStateMachine() == StateMachine.created) {
  				tracer.info("notified that doc creation succeed, updating doc");
  				setStateMachine(StateMachine.updated);
  				putDocument(true);
  			} else if (getStateMachine() == StateMachine.updated) {
  				tracer.info("notified that doc update succeed, deleting doc");
  				setStateMachine(StateMachine.deleted);
  				deleteDocument();
  			}
  		}
  	}
docs: /*
  (non-Javadoc)
  
  @see
  XDMClientParent#subscriptionNotification
  (XcapDiff,
  org.mobicents.slee.enabler.sip.SubscriptionStatus)