refactor to remove multiple MessageBodyWriters