{
EndpointReferenceType baPMEndpoint = registerParticipant(participant, BusinessActivityConstants.WSBA_SUB_PROTOCOL_PARTICIPANT_COMPLETION);
final ParticipantCompletionParticipantEngine engine = new ParticipantCompletionParticipantEngine(id, baPMEndpoint, bap) ;
ParticipantCompletionParticipantProcessor.getProcessor().activateParticipant(engine, id) ;
return new BAParticipantCompletionParticipantManagerStub(engine);
}
catch (com.arjuna.wsc.InvalidProtocolException ex)
{
throw new SystemException(ex.toString());
}