private String generateText(String key, String[] params) {
        if (key.equals("forwardRREP")) {
            return translator.translateMessage("forwardRREP", new String[]{nodeIdentifier});
        } else if (key.equals("forwardRREQ")) {
            return translator.translateMessage("forwardRREQ", new String[]{nodeIdentifier});
        } else if (key.equals("receiveRREP")) {
            return translator.translateMessage("receiveRREP");
        } else if (key.equals("routeExists")) {
            return translator.translateMessage("routeExists", params);
        } else if (key.equals("sendFastRREP")) {
            return translator.translateMessage("sendFastRREP", params);
        } else if (key.equals("sendRREP")) {
            return translator.translateMessage("sendRREP");
        } else if (key.equals("sendRREQ")) {
            return translator.translateMessage("sendRREQ");
        } else if (key.equals("startLabel")) {
            return translator.translateMessage("to", params);
        } else if (key.equals("startRouteDiscovery")) {
            return translator.translateMessage("startRouteDiscovery", params);
        } else {
            return "";
        }
    }