@SuppressWarnings("unchecked")
private MethodExpression reWrapMethodExpression(MethodExpression createdMethodExpression, ValueExpression originalValueExpression)
{
if (originalValueExpression instanceof LocationValueExpression)
{
return new LocationMethodExpression(
((LocationValueExpression)originalValueExpression).getLocation(),
reWrapMethodExpression(createdMethodExpression,
((LocationValueExpression)originalValueExpression).getWrapped()));
}
else if (originalValueExpression instanceof FacesWrapper &&