Source:
<code>public Response reassign(@javax.ws.rs.core.Context HttpHeaders headers, @PathParam("id") String containerId, @PathParam("tInstanceId") Long tInstanceId, @QueryParam("expiresAt") String expiresAt, @QueryParam("whenNotStarted") @DefaultValue("false") boolean whenNotStarted, @QueryParam("whenNotCompleted") @DefaultValue("false") boolean whenNotCompleted, String payload) { Variant v = getVariant(headers); String type = getContentType(headers); Header conversationIdHeader = buildConversationIdHeader(containerId, context, headers); <START> if (expiresAt == null) <END> return badRequest("'expiresAt' query parameter is mandatory", v, conversationIdHeader); try { if (!whenNotCompleted && !whenNotStarted) { return badRequest("At least one query parameters must be set to true - 'whenNotStarted' or 'whenNotCompleted'", v, conversationIdHeader); } String id = null; if (whenNotStarted) { id = userTaskAdminServiceBase.reassignWhenNotStarted(containerId, tInstanceId, expiresAt, payload, type); } if (whenNotCompleted) { id = userTaskAdminServiceBase.reassignWhenNotCompleted(containerId, tInstanceId, expiresAt, payload, type); } return createResponse(id, v, Response.Status.CREATED, conversationIdHeader); } catch (TaskNotFoundException e) { return notFound(MessageFormat.format(TASK_INSTANCE_NOT_FOUND, tInstanceId), v, conversationIdHeader); } catch (DeploymentNotFoundException e) { return notFound(MessageFormat.format(CONTAINER_NOT_FOUND, containerId), v, conversationIdHeader); } catch (RuntimeException e) { return badRequest("Error parsing 'expiresAt' - " + expiresAt, v, conversationIdHeader); } catch (Exception e) { logger.error("Unexpected error during processing {}", e.getMessage(), e); return internalServerError(MessageFormat.format(UNEXPECTED_ERROR, e.getMessage()), v, conversationIdHeader); } }</code><technical_language>brackets for if block</technical_language>

Target:
public Response reassign(@javax.ws.rs.core.Context HttpHeaders headers, @PathParam("id") String containerId, @PathParam("tInstanceId") Long tInstanceId, @QueryParam("expiresAt") String expiresAt, @QueryParam("whenNotStarted") @DefaultValue("false") boolean whenNotStarted, @QueryParam("whenNotCompleted") @DefaultValue("false") boolean whenNotCompleted, String payload) { Variant v = getVariant(headers); String type = getContentType(headers); Header conversationIdHeader = buildConversationIdHeader(containerId, context, headers); if (expiresAt == null) { return badRequest("'expiresAt' query parameter is mandatory", v, conversationIdHeader); } try { if (!whenNotCompleted && !whenNotStarted) { return badRequest("At least one query parameters must be set to true - 'whenNotStarted' or 'whenNotCompleted'", v, conversationIdHeader); } String id = null; if (whenNotStarted) { id = userTaskAdminServiceBase.reassignWhenNotStarted(containerId, tInstanceId, expiresAt, payload, type); } if (whenNotCompleted) { id = userTaskAdminServiceBase.reassignWhenNotCompleted(containerId, tInstanceId, expiresAt, payload, type); } return createResponse(id, v, Response.Status.CREATED, conversationIdHeader); } catch (TaskNotFoundException e) { return notFound(MessageFormat.format(TASK_INSTANCE_NOT_FOUND, tInstanceId), v, conversationIdHeader); } catch (DeploymentNotFoundException e) { return notFound(MessageFormat.format(CONTAINER_NOT_FOUND, containerId), v, conversationIdHeader); } catch (RuntimeException e) { return badRequest("Error parsing 'expiresAt' - " + expiresAt, v, conversationIdHeader); } catch (Exception e) { logger.error("Unexpected error during processing {}", e.getMessage(), e); return internalServerError(MessageFormat.format(UNEXPECTED_ERROR, e.getMessage()), v, conversationIdHeader); } }