name2 = name1.endsWith(".x") || name1.endsWith(".y") ? null : name1 + ".x";
dispatch = config.getDispatchConfig(null);
param = config.getParamConfig("target");
if (param != null && dispatch != null) {
throw new ConfigException("At most one of 'target' parameter or anonymous <dispatch> child must be given for filter '" + config.toInlineString() + "'");
}
if (dispatch == null) {
String target = param == null ? "cancel" : param.getValue();
dispatch = config.getActionConfig().findDispatchConfig(target);
if (dispatch == null) {
throw new ConfigException("Cannot find dispatch '" + target + "' for filter '" + config.toInlineString() + "'");
}
}
}