System.out.println("Have Property: " + propname);
  private void setMetricComponentProperties(String trialId, String metricId, MetricComponent mc) {    Map substitutions = new HashMap();    substitutions.put(":trial_id", trialId);    substitutions.put(":metric_id", metricId);    try {      Connection conn = DBUtils.getConnection();      Statement stmt = conn.createStatement();      String query = DBUtils.getQuery("queryMetricProperties", substitutions);      ResultSet rs = stmt.executeQuery(query);      while(rs.next()) {        String propname = rs.getString(1);        System.out.println("Have Property: " + propname);        Property prop = mc.getProperty(propname);        Class propClass = prop.getPropertyClass();        Constructor constructor = propClass.getConstructor(new Class[] {String.class});        Object value = constructor.newInstance(new Object[] {rs.getString(2)});        prop.setValue(value);      }      rs.close();      stmt.close();      conn.close();       } catch (SQLException se) {      System.err.println("Caught SQL exception: " + se);      se.printStackTrace();    } catch (Exception e ) {      System.err.println("[setMetricComponentProperties] Caught exception: " + e);    }  }