stringBuilder.append(formattedTemplate.substring(index, matcher.start ()));
}
String argumentNameString = matcher.group(1);
InputBinding binding = findBinding (argumentNameString);
if (binding != null) {
newArgumentBindings.add (binding);
} else {
JOptionPane.showMessageDialog(this, "The argument '" + argumentNameString + "' is not recognised.", "BAM Sample", JOptionPane.WARNING_MESSAGE);