package org.simantics.district.maps.server; import java.io.IOException; import java.net.URISyntaxException; import java.nio.file.Paths; import org.simantics.district.maps.server.prefs.MapsServerPreferences; public class TileserverMapnikInstance { private static TileserverMapnik INSTANCE; public static synchronized TileserverMapnik get() throws IOException, URISyntaxException { if (INSTANCE == null) INSTANCE = new TileserverMapnik(Paths.get(MapsServerPreferences.serverFolder())); return INSTANCE; } }