fix transformer bug and switch json serialization to jersey