protected function getParam($name, $required = false)
    {
        if (!$this->container->hasParameter($name)) {
            if ($required) {
                throw new SyrupComponentException(500, "Parameter '{$name}' not set in parameters.yml");
            } else {
                return null;
            }
        } else {
            return $this->container->getParameter($name);
        }
    }