{
methodExpression = new ContextAwareTagMethodExpression(this, methodExpression);
}
else
{
methodExpression = new TagMethodExpression(this, methodExpression);
}
}
else
{
ExpressionFactory f = ctx.getExpressionFactory();
methodExpression = f.createMethodExpression(ctx, this.value, type, paramTypes);
if (actx.getFaceletCompositionContext().isWrapTagExceptionsAsContextAware())
{
methodExpression = new ContextAwareTagMethodExpression(this, methodExpression);
}
else
{
methodExpression = new TagMethodExpression(this, methodExpression);
}
// if the MethodExpression contains a reference to the current composite
// component, the Location also has to be stored in the MethodExpression
// to be able to resolve the right composite component (the one that was