class ComponentResource {

    @POST
    @Consumes(MediaType.APPLICATION_JSON)
    @Timed
    @UnitOfWork
    @UserRequired
    @ApiOperation(value = "Save computation", response = ComponentDomain.class)
    public Response save(@NotNull @Valid final ComponentDomain component) {
        final ComponentDomain savedComponent = service.save(component);
        return Response.status(Response.Status.CREATED).entity(savedComponent).build();
    }

}