code: private String getMetricContext(Program program, TwillContext context) {
      String metricContext = program.getName();
      metricContext += "." + context.getSpecification().getName() + "." + context.getInstanceId();
      return metricContext;
    }
docs: Returns the metric context.  A metric context is of the form {flowY}.{flowletZ}.