if (toResolvedBundle.equals(bundleName) && currentProperties != null) {
// Resolve within bundle
String resolvedKey = currentProperties.getProperty(toResolvedKey);
if (resolvedKey == null) {
// Not found, use original (added in next iteration)
lastPos = matcher.start();
} else {
resolvedValue
.append(resolveValuesInternalKeys(locale, bundleName, toResolvedKey, currentProperties, overlayEnabled, recursionLevel, resolvedKey));
lastPos = matcher.end();
}