object.put("job", job);
return Response.ok(object).status(201).build();
} catch (WebApplicationException ex) {
throw ex;
} catch (IllegalArgumentException ex) {
throw new BadRequestFormattedException(ex.getMessage(), ex);
} catch (Exception ex) {
throw new ServiceFormattedException(ex.getMessage(), ex);
}
}