code: static Collection<Collection<MeasurementDTO>> measurementDTOs(Results<Measurement> measurements) {
          return Lists.newArrayList(Iterables.transform(measurements, new Function<Results.Row<Measurement>, Collection<MeasurementDTO>>() {
  
              @Override
              public Collection<MeasurementDTO> apply(Row<Measurement> input) {
                  return Collections2.transform(input.getElements(), new Function<Measurement, MeasurementDTO>() {
  
                      @Override
                      public MeasurementDTO apply(Measurement input) {
                          return new MeasurementDTO(
                                  input.getTimestamp().asMillis(),
                                  new ResourceDTO(input.getResource().getId(), unwrapMap(input.getResource().getAttributes())),
                                  input.getName(),
                                  input.getValue(),
                                  input.getAttributes());
                      }
                  });
              }
          }));
      }
docs: Convert measurements to {@link MeasurementDTO}s.
  
  @param measurements
  measurements to convert.
  @return converted measurements.