* @param parameters Matcher parameters.
*/
public final Map match(String type, String pattern, Parameters parameters) throws PatternException {
ComponentSelector selector = null;
Matcher matcher = null;
SourceResolver resolver = null;
Map result = null;
try {
selector = (ComponentSelector) this.manager.lookup(Matcher.ROLE +
"Selector");
assertNotNull("Test lookup of matcher selector", selector);
resolver = (SourceResolver) this.manager.lookup(SourceResolver.ROLE);
assertNotNull("Test lookup of source resolver", resolver);
assertNotNull("Test if matcher name is not null", type);
matcher = (Matcher) selector.select(type);
assertNotNull("Test lookup of matcher", matcher);
result = matcher.match(pattern, objectmodel, parameters);
} catch (ComponentException ce) {
getLogger().error("Could not retrieve matcher", ce);
fail("Could not retrieve matcher: " + ce.toString());
} finally {