public function addConstant($name, $value) {
        $constants = $this->getConstants();
        if(array_key_exists($name, $constants)) {
            throw new \Exception('Constant Already Exists: ' . $name);
        }
        $constants[$name] = $value;
        asort($constants);
        $this->setConstants($constants);
    }