Program: 47383
Project: 47383
Buggy source:
/** 
 * Creates a new blockout for scheduled jobs <p><b>Example Request:</b><br /> POST api/scheduler/blockout/add </p>
 * @param jobScheduleRequest A JobScheduleRequest object defining the blockout job<pre function="syntax.xml"> &lt;jobScheduleRequest&gt; &lt;jobName&gt;DAILY-1820438815:admin:7740000&lt;/jobName&gt; &lt;complexJobTrigger&gt; &lt;uiPassParam&gt;DAILY&lt;/uiPassParam&gt; &lt;daysOfWeek&gt;1&lt;/daysOfWeek&gt; &lt;daysOfWeek&gt;2&lt;/daysOfWeek&gt; &lt;daysOfWeek&gt;3&lt;/daysOfWeek&gt; &lt;daysOfWeek&gt;4&lt;/daysOfWeek&gt; &lt;daysOfWeek&gt;5&lt;/daysOfWeek&gt; &lt;startTime&gt;2014-08-19T10:51:00.000-04:00&lt;/startTime&gt; &lt;endTime /&gt; &lt;/complexJobTrigger&gt; &lt;inputFile&gt;&lt;/inputFile&gt; &lt;outputFile&gt;&lt;/outputFile&gt; &lt;duration&gt;7740000&lt;/duration&gt; &lt;timeZone&gt;America/New_York&lt;/timeZone&gt; &lt;/jobScheduleRequest&gt; </pre>
 * @return a Response object which contains the ID of the blockout which was created<pre function="syntax.xml"> admin	BlockoutAction	1408459814192 </pre>
 */
@POST @Path("String_Node_Str") @Consumes({APPLICATION_JSON,APPLICATION_XML}) @StatusCodes({@ResponseCode(code=200,condition="String_Node_Str"),@ResponseCode(code=401,condition="String_Node_Str")}) public Response addBlockout(JobScheduleRequest jobScheduleRequest){
  try {
    Job job=schedulerService.addBlockout(jobScheduleRequest);
    return buildPlainTextOkResponse(job.getJobId());
  }
 catch (  IOException e) {
    return buildStatusResponse(UNAUTHORIZED);
  }
catch (  SchedulerException e) {
    return buildStatusResponse(UNAUTHORIZED);
  }
catch (  IllegalAccessException e) {
    return buildStatusResponse(UNAUTHORIZED);
  }
}

Fixed version (ground truth):
/** 
 * Creates a new blockout for scheduled jobs <p><b>Example Request:</b><br /> POST api/scheduler/blockout/add </p>
 * @param jobScheduleRequest A JobScheduleRequest object defining the blockout job<pre function="syntax.xml"> &lt;jobScheduleRequest&gt; &lt;jobName&gt;DAILY-1820438815:admin:7740000&lt;/jobName&gt; &lt;complexJobTrigger&gt; &lt;uiPassParam&gt;DAILY&lt;/uiPassParam&gt; &lt;daysOfWeek&gt;1&lt;/daysOfWeek&gt; &lt;daysOfWeek&gt;2&lt;/daysOfWeek&gt; &lt;daysOfWeek&gt;3&lt;/daysOfWeek&gt; &lt;daysOfWeek&gt;4&lt;/daysOfWeek&gt; &lt;daysOfWeek&gt;5&lt;/daysOfWeek&gt; &lt;startTime&gt;2014-08-19T10:51:00.000-04:00&lt;/startTime&gt; &lt;endTime /&gt; &lt;/complexJobTrigger&gt; &lt;inputFile&gt;&lt;/inputFile&gt; &lt;outputFile&gt;&lt;/outputFile&gt; &lt;duration&gt;7740000&lt;/duration&gt; &lt;timeZone&gt;America/New_York&lt;/timeZone&gt; &lt;/jobScheduleRequest&gt; </pre>
 * @return a Response object which contains the ID of the blockout which was created<p><b>Example Response:</b></p> <pre function="syntax.xml"> admin	BlockoutAction	1408459814192 </pre>
 */
@POST @Path("String_Node_Str") @Consumes({APPLICATION_JSON,APPLICATION_XML}) @StatusCodes({@ResponseCode(code=200,condition="String_Node_Str"),@ResponseCode(code=401,condition="String_Node_Str")}) public Response addBlockout(JobScheduleRequest jobScheduleRequest){
  try {
    Job job=schedulerService.addBlockout(jobScheduleRequest);
    return buildPlainTextOkResponse(job.getJobId());
  }
 catch (  IOException e) {
    return buildStatusResponse(UNAUTHORIZED);
  }
catch (  SchedulerException e) {
    return buildStatusResponse(UNAUTHORIZED);
  }
catch (  IllegalAccessException e) {
    return buildStatusResponse(UNAUTHORIZED);
  }
}