@Override
  public boolean containsKey(String s) {
    Map<String, String> data = context.getInstanceData();
    return data.containsKey(s);
  }
Constructor of adapter
@param context View Context
contrib/views/pig/src/main/java/org/apache/ambari/view/pig/persistence/utils/ContextConfigurationAdapter.java