function setEndPointGroup($endPointGroup) {
        if (strlen($this->getEndPoint()) > 0)
        {
            throw new RuntimeException(
                "End point has been already set. You can set either end point or end point group."
            );
        }

        $this->endPointGroup = (int) $endPointGroup;
    }