@GET
@Path("{jobId: \\d+}")
public Response getJob(@PathParam("jobId") long jobId)
{
PersistentPeriodicImportJob job = periodicImportManager.getJob(jobId);
if (job == null) {
return Response.status(Status.NOT_FOUND).build();
}
else {
return Response.ok(job).build();