Imagine following class
@Getter @Setter @XmlAccessorType(XmlAccessType.FIELD) class Foo { @XmlElement(name = "ID") private long id;