You can use the following ivyScript Code to access the value of the attribute:
import ivy.Location;
import javax.faces.context.FacesContext;
FacesContext fc = FacesContext.getCurrentInstance();
Location obj = fc.getApplication().evaluateExpressionGet(fc,
"#{cc.attrs.model.location}", "#{cc.attrs.location}", Location.class) as Location;