setEndpoint() is now declared static function