IComponentSpecification result = null;
if (LOG.isDebugEnabled())
LOG.debug("Parsing component specification " + resourceLocation);
SpecificationParser parser = getParser();
try
{
if (asPage)
result = parser.parsePageSpecification(resourceLocation);
else
result = parser.parseComponentSpecification(resourceLocation);
}
catch (DocumentParseException ex)
{
throw new ApplicationRuntimeException(
Tapestry.format(