import de.fhg.aisec.ids.idscp2.IDSCPv2Initiator;
import de.fhg.aisec.ids.idscp2.drivers.default_driver_impl.secure_channel.NativeTLSDriver;
import de.fhg.aisec.ids.idscp2.drivers.interfaces.SecureChannelDriver;
import de.fhg.aisec.ids.idscp2.drivers.interfaces.SecureServer;
import de.fhg.aisec.ids.idscp2.idscp_core.IDSCPv2Connection;
import de.fhg.aisec.ids.idscp2.idscp_core.configuration.IDSCPv2Configuration;
import de.fhg.aisec.ids.idscp2.idscp_core.configuration.IDSCPv2Settings;

import java.util.concurrent.ConcurrentHashMap;


public class IDSCPv2ServerInitiator implements IDSCPv2Initiator {

    private ConcurrentHashMap<String, IDSCPv2Connection> connections = new ConcurrentHashMap<>();
    private SecureServer secureServer = null;


    public void init(IDSCPv2Settings serverSettings)  {
        SecureChannelDriver secureChannelDriver = new NativeTLSDriver();
        IDSCPv2Configuration idscpServerConfig = new IDSCPv2Configuration(this,
                null,null,null,secureChannelDriver);
        secureServer = idscpServerConfig.listen(serverSettings);
        //secureServer.safeStop();
        try {
            Thread.sleep(300000); //run server for 5 minutes
        } catch (Exception e){

        }
        secureServer.safeStop();
    }

    @Override
    public void newConnectionHandler(IDSCPv2Connection connection) {
        connections.put(connection.getConnectionId(), connection);
    }

    @Override
    public void errorHandler(String error) {

    }

    @Override
    public void connectionClosedHandler(String connectionId) {
        System.out.println("Connection closed");
        connections.remove(connectionId);
    }
}

@@ -264,24 +264,79 @@
 cureServer;%0A
+import de.fhg.aisec.ids.idscp2.error.IDSCPv2Exception;%0A
 import de.fh
@@ -1060,16 +1060,34 @@
 river);%0A
+        try %7B%0A    
         
@@ -1143,16 +1143,120 @@
 tings);%0A
+        %7D catch (IDSCPv2Exception e) %7B%0A            //e.printStackTrace();%0A            return;%0A        %7D%0A
         

FIX build error, uncatched IDSCPv2Exception in Tests