final XAResourceRecord record;
if ((xaRes instanceof LastResourceCommitOptimisation)
|| ((LAST_RESOURCE_OPTIMISATION_INTERFACE != null) && LAST_RESOURCE_OPTIMISATION_INTERFACE
.isInstance(xaRes)))
{
record = new LastResourceRecord(this, xaRes, xid, params);
}
else
{
record = new XAResourceRecord(this, xaRes, xid, params);
}