Vector agents = getAgentNames(); if (agents == null) { displayErrorString("Error. Was unable to retrieve agents."); } initializeComboBoxes(agents);
reinitializeAgentNames(".");
    protected void connectToServlet() {        if (getAgentHostAndPort()) {            Vector agents = getAgentNames();            if (agents == null) {                displayErrorString("Error. Was unable to retrieve agents.");            }            initializeComboBoxes(agents);        }    }