PROPERTY_DELIMITER);
int propertyCount = propertiesAsText.length;
for (int i = 0; i < propertyCount; i++) {
String property = propertiesAsText[i];
Match match = KEY_VALUE_REGEX.match(property);
if (!match.isSuccessful()) {
String message = "The String " + StringUtils.quote(property)
+ " should match the regular expression pattern "
+ StringUtils.quote(KEY_VALUE_REGEX.getPattern());
throw new IllegalArgumentException(message);
}
String[] groups = match.getGroups();
String key = groups[1].trim();
String value = groups[2].trim();
if (properties.containsKey(key)) {
throw new IllegalArgumentException("The property "