code: public int getState(Var var) {
          Integer state = config.get(var);
          if (state == null) {
              throw new RuntimeException("VarConfig does not contain var: " + var);
          }
          return state;
      }
docs: Gets the state (in this config) for a given variable.