operation.consumes("application/json");
}</BUG>
Produces produces = method.getAnnotation(Produces.class);
if (produces != null) {
operation.produces(Arrays.asList(produces.value()));
<BUG>} else
if(!apiOperation.produces().isEmpty()) {
</BUG>
operation.produces(apiOperation.produces());
} else {

operation.consumes("application/json");
Produces produces = method.getAnnotation(Produces.class);
if (produces != null) {
operation.produces(Arrays.asList(produces.value()));
} else if (!apiOperation.produces().isEmpty()) {
operation.produces(apiOperation.produces());
} else {
