package de.atomfrede.github.karaoke.server.resource;

import com.codahale.metrics.annotation.Timed;
import de.atomfrede.github.karaoke.server.entity.Pong;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

@Path("/ping")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public class PingResource {

    @GET
    @Timed
    @Path("pong")
    public Pong pong() {
        return new Pong(InetAddress.getLocalHost().getHostName() + "");
    }
}

@@ -290,16 +290,45 @@
 diaType;
+%0Aimport java.net.InetAddress;
 %0A%0A@Path(
@@ -501,16 +501,44 @@
 g pong()
+ throws UnknownHostException
  %7B%0A     

Update PingResource.java