JaxenCompiled<T> () { // Use a copy-constructor instead of a deep clone. // we have a couple of final variables on this class that we cannot share // between instances, and the Jaxen xpath variable is pretty complicated to reconstruct // anyway. Easier to just reconstruct it. return new JaxenCompiled<>(this); }