Bug 912653 Remote JNDI is not working with a HornetQ-only JMS bridge

Using writeReplace() method to return a 'cloned' locator without those non serializable fields.