Adding utility for marshalling/unmarshalling generated objects.