public GlobalParams withLocalParams(Collection<ParamsType> params) {
        GlobalParams p = copy();
        for (ParamsType t: params) {
            p.put(t.name, t.value);
        }
        return p;
    }