Publish publishAnnotation = ctx.getActionAnnotation(Publish.class);
if (publishAnnotation != null) {
view = doPublish(entity, req, config, publishAnnotation.value());
}
Resume resumeAnnotation = ctx.getActionAnnotation(Resume.class);
if (resumeAnnotation != null) {
//TODO suspendTimeout not used
int suspendTimeout = resumeAnnotation.value();
doResume(marshalledEntity, req, resp, resource);
}
Schedule scheduleAnnotation = ctx.getActionAnnotation(Schedule.class);
if (scheduleAnnotation != null) {