if(CONFIG_LOG_MSG) writeLog("Received Service Dereg\n" + msg.toString());
logMessage("Received Message:", msg);
    private SLPMessageHeader handleServiceDeregistration(SLPInputStream sis, boolean isUDP) {        SLPSrvDeregMessage msg = new SLPSrvDeregMessage();        SLPMessageHeader reply = null;        int error = 0;        try {            msg.fromInputStream(sis);        }catch(ServiceLocationException sle) {            error = sle.getErrorCode();        }                if(CONFIG_LOG_MSG) writeLog("Received Service Dereg\n" + msg.toString());        if(error == 0) {            ServiceURL url = msg.getURL();            boolean removed = database.removeEntry(url, msg.getScopes());            if(!removed) error = ServiceLocationException.INVALID_REGISTRATION;        }                reply = new SLPSrvAckMessage(error, msg.getLanguage());        reply.setXID(msg.getXID());                return reply;    }