code: private void setSmarts(String[] smarts) {
          keys.clear();
          for (String key : smarts) {
              QueryAtomContainer qmol = new QueryAtomContainer(null);
              SmartsPattern ptrn = null;
              ptrn = SmartsPattern.create(key);
              ptrn.setPrepare(false); // prepare is done once
              keys.add(new Key(key, ptrn));
          }
      }
docs: Set the SMARTS patterns.
  @param smarts the SMARTS