String (String value, String defaultKey, PropertiesFile propertiesFile) { // suggest property key not existing in this file if (defaultKey == null) { defaultKey = generateDefaultPropertyKey(value); } if (propertiesFile != null) { if (propertiesFile.findPropertyByKey(defaultKey) == null) return defaultKey; int suffix = 1; while (propertiesFile.findPropertyByKey(defaultKey + suffix) != null) { suffix++; } return defaultKey + suffix; } else { return defaultKey; } }