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