public void handle(Request request, Response response) {
String fileKey = request.mandatoryParam(KEY);
UserSession.get().checkComponentPermission(UserRole.CODEVIEWER, fileKey);
int line = request.mandatoryParamAsInt(LINE);
Testable testable = snapshotPerspectives.as(MutableTestable.class, fileKey);
JsonWriter json = response.newJsonWriter().beginObject();
if (testable != null) {
Map<String, Integer> refByTestPlan = newHashMap();
Map<String, Component> componentsByKey = newHashMap();
writeTests(testable, line, refByTestPlan, componentsByKey, json);