TableRow[] rows = getLeafValues(nodes);
long[] motes = getMoteIds(rows);
SimpleMoteManager moteManager = (SimpleMoteManager) session
.getMoteManager();
if (cmd.equals("release")) {
moteManager.releaseMotes(motes);
} else if (cmd.equals("console")) {
for (i = 0; i < rows.length; i++) {
getMoteView((MoteControlRow) rows[i]);
}