out.writeUTF(root_);
out.writeUTF(state_.toString());
out.writeUTF(resourcename_);
out.writeInt(heuristicMessages_.size());
for (Iterator<HeuristicMessage> iterator = heuristicMessages_.iterator(); iterator.hasNext();) {
HeuristicMessage heuristicMessage = (HeuristicMessage) iterator.next();
out.writeUTF(heuristicMessage.toString());
}
if (xaresource_ instanceof Serializable) {
// cf case 59238
out.writeBoolean(true);