code: public String getRewriteDirective(CaptureSearchResult capture) {
  		String directive = null;
  		// use getter, as it may be overridden in sub-classes.
  		RewriteDirector rd = getRewriteDirector();
  		if (rd != null) {
  			directive = rd.getRewriteDirective(this, capture);
  		}
  		return directive;
  	}
docs: Return rewrite directive for {@code capture}.
  @param capture
  @return string representing rewrite rules