Not sure if I understood you correctly here, what kind of java object will your route be receiving from?
For your route, I would suggest you to have a consumer which will accept the data then use a processor which would help you transform your data into the required format and then pass it on to the producer which would be your AMQ endpoint.
Also, can you share a sample reproducer of what you have configured so far? I can have a look at it and understand the requirement accordingly.
I believe, documentation and  might help you along with some community articles: