private String toPath4Script(
PatternParserWithPathFormat patternParser) {
UrlPathParser pp = patternParser.getUrlPathParser();
String path = pp.getPath();
Replacer rep = new Replacer(phPattern) {
@Override
protected String replace(int groupIndex, String value) {
return "' + " + value + " + '";
}
};
return rep.replace(path);
}