return;
logger.debug("setting volume status {newStatus='"+newStatus+"',"+ toString()+"}");
switch(status) {
case CLOSED:
if (newStatus!=Status.UNMOUNTED)
throw new ConfigurationException("failed to change volume status. it is closed {newstatus='"+status+"'}",logger);
break;
case ACTIVE: if (newStatus!=Status.CLOSED)
throw new ConfigurationException("failed to change volume status. it can only be closed {newstatus='"+status+"'}",logger);
break;
case UNUSED: if (newStatus!=Status.ACTIVE)
throw new ConfigurationException("failed to change volume status. it can only be made active {newstatus='"+status+"'}",logger);
break;
case NEW: if (newStatus!=Status.UNUSED)
throw new ConfigurationException("failed to change volume status. it can only be made active {newstatus='"+status+"'}",logger);
break;
case UNMOUNTED: if (newStatus!=Status.CLOSED)
throw new ConfigurationException("failed to change volume status. it can only be closed {newstatus='"+status+"'}",logger);
break;
default: throw new ConfigurationException("failed to change volume status. internal status is set to invalid value.",logger);
}
status = newStatus;
}