Convert a official map into correct attribute names
function convertOfficialMap (attributes) {
  let map = {}
  for (let attribute in attributes) {
    let key = officialAttributeMap[attribute]
    map[key] = attributes[attribute]
  }
  return map
}