DefinitionTagParent parent =
(DefinitionTagParent) findAncestorWithClass(this,
DefinitionTagParent.class);
if (parent == null && name == null) {
throw new TilesJspException(
"Error - tag definition : enclosing tag doesn't accept 'definition'"
+ " tag and a name was not specified.");
}
return parent;
} catch (ClassCastException ex) { // Is it possibile?
throw new TilesJspException(
"Error - tag definition : enclosing tag doesn't accept 'definition' tag.", ex);
}
}