private String getPath(String text, int id) {
        if (text.equals(IN) || text.equals(OUT))
            if (id == 0)
                return LOW_PATH;
            else
                return HIGH_PATH;
        for (int i = 0; i < COMPONENTS.getLength(); i++) {
            if (COMPONENTS.get(i).equals(text))
                if (id == 0)
                    return COMPONENTS_PATH.get(i);
                else
                    return COMPONENTS2_PATH.get(i);
        }
        return "";
    }