Boomi Set Dynamic Document Property Groovy, Add a rule that invokes a User Defined Map Function that performs the desired manipulation.