// 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());
final Schedule schedule = new Schedule();
schedule.setDurationSeconds(seconds);
workspace.setRequestedSchedule(schedule);
} catch (NullPointerException e) {
throw new ParameterProblem(e.getMessage(), e);