if ((this.capabilities & EL_CC) != 0)
{
UIComponent cc = actx.getFaceletCompositionContext().getCompositeComponentFromStack();
if (cc != null)
{
Location location = (Location) cc.getAttributes().get(CompositeComponentELUtils.LOCATION_KEY);
if (location != null)
{
if (ExternalSpecifications.isUnifiedELAvailable())
{
valueExpression = new LocationValueExpressionUEL(location, valueExpression);
}
else
{
valueExpression = new LocationValueExpression(location, valueExpression);
}
}
}
}
else if ((this.capabilities & EL_RESOURCE) != 0)
{
UIComponent cc = actx.getFaceletCompositionContext().getCompositeComponentFromStack();
if (cc != null)
{
Location location = (Location) cc.getAttributes().get(CompositeComponentELUtils.LOCATION_KEY);
if (location != null)
{
if (ExternalSpecifications.isUnifiedELAvailable())
{
valueExpression = new ResourceLocationValueExpressionUEL(location, valueExpression);