/**
* Gets the default validation matcher library from Citrus Spring bean configuration.
* @return
*/
public ValidationMatcherLibrary getDefaultValidationMatcherLibrary() {
ValidationMatcherLibrary library = new ObjectFactory().createValidationMatcherLibrary();
ValidationMatcherConfig config = new ValidationMatcherConfig();
com.consol.citrus.validation.matcher.ValidationMatcherLibrary defaultValidationMatcher = config.getValidationMatcherLibrary();
library.setId(defaultValidationMatcher.getName());
library.setPrefix(defaultValidationMatcher.getPrefix());
for (Map.Entry<String, ValidationMatcher> matcherEntry : defaultValidationMatcher.getMembers().entrySet()) {
ValidationMatcherLibrary.Matcher matcher = new ValidationMatcherLibrary.Matcher();
matcher.setName(matcherEntry.getKey());
matcher.setClazz(matcherEntry.getValue().getClass().getName());
library.getMatchers().add(matcher);
}
return library;
}