code: public AsyncActivity createActivity()
  			throws ActivityAlreadyExistsException, StartActivityException {
  		checkState();
  		// generate id
  		final String id = UUID.randomUUID().toString();
  		// create handle
  		final XCAPResourceAdaptorActivityHandle handle = new XCAPResourceAdaptorActivityHandle(
  				id);
  		// create activity
  		final AsyncActivityImpl activity = new AsyncActivityImpl(ra, handle);
  		// start activity
  		this.ra.getSleeEndpoint().startActivitySuspended(handle, activity,
  				ACTIVITY_FLAGS);
  		this.ra.addActivity(handle, activity);
  		return activity;
  	}
docs: /*
  (non-Javadoc)
  
  @see
  XCAPClientResourceAdaptorSbbInterface
  #createActivity()