code: public LocalXAResource createConnectableLocalXAResource(ConnectionManager cm,
                                                             String productName, String productVersion,
                                                             String jndiName, ConnectableResource cr,
                                                             XAResourceStatistics xastat)
     {
        LocalXAResource result = null;
        if (xastat != null && xastat.isEnabled())
        {
           result = new LocalConnectableXAResourceStatImpl(productName, productVersion, jndiName, cr, xastat);
        }
        else
        {
           result = new LocalConnectableXAResourceImpl(productName, productVersion, jndiName, cr);
        }
        result.setConnectionManager(cm);
  
        return result;
     }
docs: {@inheritDoc}