String newEncryptedString = encryptedString.replaceFirst(
Pattern.quote(token.originalToken),
this.getEncryptedToken(encryptedValue));
if (newEncryptedString.equals(encryptedString)) {
throw new JuException("Couldn't replace token: %s", token.unencryptedValue);
} else {
encryptedString = newEncryptedString;
}
if (this.outputDebugMessages) {