code: private String[] getSuffixes(final String lex) {
      final Integer start = Integer.parseInt(this.attributes.get("sufBegin"));
      final Integer end = Integer.parseInt(this.attributes.get("sufEnd"));
      final String[] suffs = new String[end];
      for (int li = start, ll = end; li < ll; li++) {
        suffs[li] = lex.substring(Math.max(lex.length() - li - 1, 0));
      }
      return suffs;
    }
docs: Obtain suffixes for each token.
  
  @param lex
  the word
  @return the suffixes