I currently use @Xml annotations to specify the fields I want to include in my REST responses. I'm seeing a situation where I might need to augment that with either XML config, or even dynamic code. The only changes I would make in the XML config or dynamic code would be to exclude certain fields. If it's too hard to use both annotations and XML config, I would use XML config entirely.
Can someone describe my choices for how I might get this done?
