Return a valid ICachedItemMapper.map for schema

def schema_map(schema):
    """Return a valid ICachedItemMapper.map for schema"""
    mapper = {}
    for name in getFieldNames(schema):
        mapper[name] = name
    return mapper