private PatternMatcher getAdapter(Object adaptableObject, Class adapterType) {
if (PatternMatcher.class.equals(adapterType) &&
(adaptableObject instanceof XMLSearchPattern ||
adaptableObject instanceof XMLComponentSearchPattern) ) {
return new XMLSearchPatternMatcher(this);
}
return null;
}