'Add username to outgoing user refs to match the v2 spec.
Internally we use `name` to represent a user\'s name. The v2 spec
requires the use of `username` instead.'

@staticmethod
def normalize_username_in_response(ref):

    if (('username' not in ref) and ('name' in ref)):
        ref['username'] = ref['name']
    return ref
