Jaxb getTypes returns a copy of the array