code: public static DateTimePatternGenerator getEmptyInstance() {
          DateTimePatternGenerator instance = new DateTimePatternGenerator();
          instance.addCanonicalItems();
          instance.fillInMissing();
          return instance;
      }
docs: Create empty generator, to be constructed with addPattern(...) etc.