Prevent serializing unneeded fields. Adding @XmlTransient annotation.