public static Map<YarnRunningPrice.PriceType, YarnRunningPrice> createMap(
     List<YarnRunningPriceClusterJ.YarnRunningPriceDTO> results) {
   Map<YarnRunningPrice.PriceType, YarnRunningPrice> map =
       new HashMap<YarnRunningPrice.PriceType, YarnRunningPrice>();
   for (YarnRunningPriceClusterJ.YarnRunningPriceDTO persistable : results) {
     YarnRunningPrice hop = createHopYarnRunningPrice(persistable);
     map.put(hop.getId(), hop);
   }
   return map;
 }
  private YarnRunningPriceClusterJ.YarnRunningPriceDTO createPersistable(
      YarnRunningPrice hopPQ, HopsSession session) throws StorageException {
    YarnRunningPriceClusterJ.YarnRunningPriceDTO pqDTO =
        session.newInstance(YarnRunningPriceClusterJ.YarnRunningPriceDTO.class);
    // Set values to persist new YarnRunningPriceDTO
    pqDTO.setId(hopPQ.getId().name());
    pqDTO.setTime(hopPQ.getTime());
    pqDTO.setPrice(hopPQ.getPrice());

    return pqDTO;
  }