ValueProviderType vpt = ValueProviderType.getTypeByPrefix(root);
if (vpt == null) {
// validate that its a foreachs
} else if (vpt.isGlobal()) {
AuraContext lc = Aura.getContextService().getCurrentContext();
GlobalValueProvider gvp = lc.getGlobalProviders().get(vpt);
if (gvp != null) {
PropertyReference stem = e.getStem();
if (stem == null) {
throw new InvalidExpressionException("Expression didn't have enough terms: " + e, e.getLocation());
}
gvp.validate(stem);
}
} else if (vpt == ValueProviderType.VIEW) {
if (e.getStem() != null) { // checks for private attributes used in expressions ..
String stem = e.getStem().toString();
AttributeDef attr = getAttributeDef(stem);