public void setElementConditionToAll(AbstractElement e, Condition c) {
        if (e == null)
            throw new NullPointerException("The element is null.");
        if (c == null)
            throw new NullPointerException("The condition is null.");
        RETW(defaultEngineLock, () -> {
            elementConditions.keySet().forEach(p -> {
                if (p.first.equals(p.last)
                        && (p.first.equals(e.getID()) || p.last.equals(e.getID())))
                    elementConditions.put(p, c);
            });
        });
    }