code: private Xid convertXid(Xid xid)
     {
        if (xid instanceof XidWrapper)
           return xid;
        else
           return new XidWrapperImpl(xid, pad, jndiName);
     }
docs: Return wrapper for given xid.
  @param xid xid
  @return return wrapper