final ObjectOutputStream oos = new ObjectOutputStream(baos) ;
oos.writeObject(participant) ;
oos.flush() ;
return baos.toByteArray();
} else {
PersistableBAParticipant persistableParticipant = (PersistableBAParticipant) participant;
return persistableParticipant.getRecoveryState();
}
}