errorMessage.append(" exception(s):");
for (int i = 0; i < exceptions.size(); i++) {
errorMessage.append(System.getProperty("line.separator"));
Throwable throwable = exceptions.get(i);
String message = throwable.getMessage();
XAResourceHolderState holderState = resourceStates.get(i);
if (holderState != null) {
errorMessage.append(" [");
errorMessage.append(holderState.getUniqueName());
errorMessage.append(" - ");
}
errorMessage.append(throwable.getClass().getName());
if (throwable instanceof XAException) {
XAException xaEx = (XAException) throwable;