I'll be honest most people are moving away from 5 so unlikely to be able to help.
I would start the move to 6 or 7 before changing anything more in 5 as it will soon possibly be out of support from Bonitasoft (I think it is two version s back only that are supported).
regards