I have the following.\[code\]@XmlRootElementpublic class SomeObject { private String requiredField; @XmlElement(name="address", required=true) public String getRequiredField() { return requiredField; } public void setRequiredField(String requiredField) { this.requiredField = requiredField; } }\[/code\]However, when the corresponding Jersey resource consumes the JSON necessary to make this object it successfully creates the object, with or without the field that is annotated as required. Using Jersey and JAXB, or directly related technologies, is there a way to ensure that a value for requiredField is present in the consumed JSON? What's missing from the example above?Example:What I would like is it to reject a call such as the following, as the JSON body does not contain a value for requiredField.\[code\]curl -i -X POST -H 'content-type:application/json' -d '{}' http://some/uri\[/code\]Rather I would want something like this to work.\[code\]curl -i -X POST -H 'content-type:application/json' -d '{"requiredField":"Hello, world!"}' http://some/uri\[/code\]