UserBusinessActivity uba = UserBusinessActivity.getUserBusinessActivity();
BusinessActivityManager bam = BusinessActivityManager.getBusinessActivityManager();
com.arjuna.wst.BAParticipantManager bpm1 = null;
com.arjuna.wst.BAParticipantManager bpm2 = null;
DemoBusinessParticipant p = new DemoBusinessParticipant(DemoBusinessParticipant.COMPENSATE, "1234");
FailureBusinessParticipant fp = new FailureBusinessParticipant(FailureBusinessParticipant.FAIL_IN_COMPENSATE, "5678");
uba.begin();
bpm1 = bam.enlistForBusinessAgreementWithParticipantCompletion(p, "1234");
bpm2 = bam.enlistForBusinessAgreementWithParticipantCompletion(fp, "5678");