try {
stream.write(colorizeText("There " + (exits.size() == 1 && exits.size() != 0 ? "is" : "are") + " " + pluralize("exit", exits.size()) + ": ", CYAN));
Iterator iter = exits.iterator();
int i = 0;
while (iter.hasNext()) {
Exit exit = (Exit) iter.next();
stream.write(colorizeText(exit.getDirection() + (i < exits.size() - 1 ? ", " : "\r\n"), WHITE));
i++;
}
} catch (IOException e) {
logger.error(e, e);
}