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