def METHOD_NAME(metaname, spec):
  specMap = {}
  statusMap = {}
  for resource in spec:
    if resource.get("name","") == metaname:
      for specD in resource.get("specDescriptors",[]):
        specMap[specD.get("path","")] = specD
      for statusD in resource.get("statusDescriptors",[]):
        statusMap[statusD.get("path","")] = statusD
  return (specMap, statusMap)