try {
Mapping mapping = (Mapping) clazz.newInstance();
mapping.setMappings(mappings);
mapping.setMechanism(mechanism);
mapping.setPattern(pattern);
Processor processor = (Processor) processorClazz.newInstance();
if (processor instanceof FilteringProcessor) {
String excludesPatterns =
context.getExternalContext().getInitParameter(excludesName);
if (excludesPatterns == null) {
excludesPatterns = excludesDefault;