XML Document Transform Implementation in Java