workspace.setRequestedShutdownMech(mech);
if (this.req.getInitialState() == null) {
workspace.setRequestedInitialState(State.DEFAULT_INITIAL_STATE);
} else {
final State initialState =
State.fromInitialState_Type(this.req.getInitialState());
workspace.setRequestedInitialState(initialState);
}
// this might be incorrect information already, but it is the initial
// state of all workspaces
workspace.setCurrentState(new State(State.STATE_Unstaged));
try {
final DeploymentTime_Type time = this.req.getDeploymentTime();
final int seconds =
CommonUtil.durationToSeconds(time.getMinDuration());