if (status == null) {
statusFlag = (Integer)statusMap.get("invisible");
} else {
statusFlag = (Integer)statusMap.get(status);
if (statusFlag == null) {
throw new IllegalArgumentException("status "+status+" not supported");
}
}
//send the status flag mask down to be processed
cmdHandler.changeStatus(statusFlag);