private ConfigurationValue resolveMatch(List<ConfigurationValue> values) {
ConfigurationValue bestMatch = null;
for (ConfigurationValue configurationNode : values) {
if (ConfigurationValue.DEFAULT_TAG.equals(configurationNode.tag())) {
if (bestMatch == null || bestMatch.tag().equals(ConfigurationValue.DEFAULT_TAG)) {
bestMatch = configurationNode;
}
} else if (currentTags.contains(configurationNode.tag())) {
if (bestMatch == null) {
bestMatch = configurationNode;