code: private Boolean getBooleanParameter(String key){
          Integer i = (Integer)parameters.get(key);
          if (i == null){
              return null;
          }
          return i.equals(1);
      }
docs: Get a stored parameter that is a boolean.
  @param key the parameter's key
  @return the stored parameter's value