Use XmlTransient annotation on  relations in Paste to get rid of all manually created message body readers/writers.
Use method to return IDs of references instead.