}
SchemaNode valueNode = schema.get(valuePath);
if (valueNode.isAttribute()) {
this.add(new URLDecodingRule((GroupSchemaNode)node, (AttributeSchemaNode)valueNode));
} else {
throw new WikiSchemaException(WikiSchemaException.InvalidConstraintDefinition, valueNode + " is not an attribute node");
}
} else {
throw new WikiSchemaException(WikiSchemaException.InvalidConstraintDefinition, path + " is not a group node");
}
} else {
throw new WikiSchemaException(WikiSchemaException.InvalidConstraintDefinition, definition);
}
} catch (java.util.NoSuchElementException noSuchElementException) {
throw new WikiSchemaException(WikiSchemaException.InvalidConstraintDefinition, definition);
}
} else {
throw new WikiSchemaException(WikiSchemaException.InvalidConstraintDefinition, definition);
}
}
}