break;
// create a status update
default:
final CreateStatusUpdateResponse createStatusUpdateResponse = new CreateStatusUpdateResponse();
final CreateStatusUpdateRequest createStatusUpdateRequest = CreateStatusUpdateRequest
.checkRequest(formItemList, createRequest,
createStatusUpdateResponse);
createResponse = createStatusUpdateResponse;
if (createStatusUpdateRequest != null) {
try {
this.writeFiles(createStatusUpdateRequest
.getStatusUpdateTemplate(), formItemList);
// create a new status update of the type specified
final StatusUpdate statusUpdate = StatusUpdateManager
.instantiateStatusUpdate(
createStatusUpdateRequest
.getStatusUpdateTemplate()
.getName(), formItemList);
statusUpdate.setId(createStatusUpdateRequest
.getStatusUpdateId());
createStatusUpdateRequest
.setStatusUpdate(statusUpdate);
// create status update
final CreateStatusUpdate createStatusUpdateCommand = new CreateStatusUpdate(
this, createStatusUpdateResponse,