code: public Defuzzifier constructDefuzzifier(String key, int resolution) {
          Defuzzifier result = constructObject(key);
          if (result instanceof IntegralDefuzzifier) {
              ((IntegralDefuzzifier) result).setResolution(resolution);
          }
          return result;
      }
docs: Creates a Defuzzifier by executing the registered constructor
  
  @param key is the unique name by which constructors are registered
  @param resolution is the resolution of an IntegralDefuzzifier
  @return a Defuzzifier by executing the registered constructor and setting
  its resolution