subSequence = Encoder.path(subSequence);
result.append(subSequence);
int startPos = cursor;
CapturingGroup group = ParseTools.balancedCapture(sequence, startPos, sequence.length() - 1,
CaptureType.BRACE);
cursor = group.getEnd();
lastEnd = group.getEnd() + 1;
String name = group.getCaptured().toString();
Parameter parameter = parameters.get(name);
if (parameter == null || !parameter.hasValues())
throw new IllegalStateException("No parameter [" + name + "] was set in the pattern [" + sequence
+ "]. Call address.set(\"" + name + "\", value); or remove the parameter from the pattern.");