code: public void sbbRemove() {
  		// terminate the xcap activity, if exists
  		ActivityContextInterface[] activities = sbbContext.getActivities();
  		if (activities.length != 0) {
  			activities[0].detach(sbbContext.getSbbLocalObject());
  			((AsyncActivity) activities[0].getActivity()).endActivity();
  		}
  	}
docs: /*
  (non-Javadoc)
  
  @see javax.slee.Sbb#sbbRemove()