package uk.ac.ebi.atlas.experimentpage.baseline.coexpression;

import com.google.gson.Gson;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.inject.Inject;
import java.util.Set;


@Controller
@RequestMapping
public class CoexpressedGenesController {


    Gson gson = new Gson();
    CoexpressedGenesDao coexpressedGenesDao;

    @Inject
    public CoexpressedGenesController(JdbcTemplate jdbcTemplate){
        this.coexpressedGenesDao = new CoexpressedGenesDao(jdbcTemplate);
    }

    @RequestMapping(value ={"/json/experiments/coexpression"}, method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    @ResponseBody
    public String fetchCoexpressedGenes(@RequestParam(value = "experiment", required = true) String experiment,
                                        @RequestParam(value = "identifier", required = true) String identifier) {
        return gson.toJson(coexpressedGenesDao.coexpressedGenesFor(experiment, identifier), Set.class);
    }
}

@@ -237,9 +237,274 @@
 ion.
-*
+RequestMapping;%0Aimport org.springframework.web.bind.annotation.RequestMethod;%0Aimport org.springframework.web.bind.annotation.RequestParam;%0Aimport org.springframework.web.bind.annotation.ResponseBody;%0Aimport uk.ac.ebi.atlas.controllers.JsonExceptionHandlingController
 ;%0A%0Ai
@@ -553,17 +553,16 @@
 l.Set;%0A%0A
-%0A
 @Control
@@ -625,15 +625,68 @@
 ler 
-%7B%0A%0A%0A   
+extends JsonExceptionHandlingController %7B%0A%0A    private final
  Gso
@@ -710,16 +710,30 @@
 ();%0A    
+private final 
 Coexpres
@@ -987,16 +987,36 @@
 ssion%22%7D,
+%0A                   
  method 
@@ -1173,33 +1173,16 @@
 eriment%22
-, required = true
 ) String
@@ -1272,25 +1272,8 @@
 ier%22
-, required = true
 ) St

Replace wildcard import with single imports