The synagogue was built in the 17th century to serve the local Jewish Lebanese population . The synagogue was built in the 17th century to serve the local Jewish population , some of whom were part of the immediate entourage of Fakhr-al-Din II .