@Override
  public Double getDouble(String s, Double aDouble) {
    String data = context.getInstanceData(s);
    return (data != null)?Double.parseDouble(data):aDouble;
  }
Constructor of adapter
@param context View Context
contrib/views/pig/src/main/java/org/apache/ambari/view/pig/persistence/utils/ContextConfigurationAdapter.java