'Add name in incoming 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_request(ref):

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