private static String formatEdgeLabel(String label) {
        if(label==null)
            return "";

        StringBuilder builder = new StringBuilder();
        for(String element : label.split(";")) {
            if(builder.length()>0)
                builder.append("\\n");
            builder.append(ensureTextIsValid(element));
        }
        return builder.toString();
    }