@Override
  public TodoPattern clone() {
    try {
      TodoAttributes attributes = this.attributes.clone();
      TodoPattern pattern = (TodoPattern)super.clone();
      pattern.indexPattern = new IndexPattern(indexPattern.getPatternString(), indexPattern.isCaseSensitive());
      pattern.attributes = attributes;

      return pattern;
    }
    catch (CloneNotSupportedException e) {
      LOG.error(e);
      return null;
    }
  }
@Override
  public TodoPattern clone()