public BusinessAgreementWithParticipantCompletionParticipant deserializeParticipantCompletionParticipant(String id, ObjectInputStream stream) throws Exception {
if (id.startsWith("com.arjuna.xts-demorpc:restaurantBA") ||
id.startsWith("com.arjuna.xts-demorpc:theatreBA") ||
id.startsWith("com.arjuna.xts-demorpc:taxiBA")) {
System.out.println("xts-demorpc : attempting to deserialize WS-BA ParticipantCompletion participant " + id);
BusinessAgreementWithParticipantCompletionParticipant participant = (BusinessAgreementWithParticipantCompletionParticipant)stream.readObject();
System.out.println("xts-demorpc : deserialized WS-BA ParticipantCompletion participant " + id);
return participant;
}
return null;