// Path: test/testapps/basicdropwizardapp/src/main/java/com/github/sullis/dropwizard/helloworld/resources/HelloWorldResource.java
// @Path("/helloworld")
// @Produces(MediaType.APPLICATION_JSON)
// @Consumes(MediaType.APPLICATION_JSON)
// public class HelloWorldResource {
// 
//     public HelloWorldResource() {
//     }
// 
//     @GET
//     @Timed(name = "get-requests")
//     public HelloMessage get(@QueryParam("name") Optional<String> name) {
//         HelloMessage hello = new HelloMessage();
//         hello.setMessage("Hello" + ( (name.isPresent()) ? " " + name.get() : ""));
//         return hello;
//     }
// }


import org.codehaus.jackson.map.Module;
import com.github.sullis.dropwizard.helloworld.resources.HelloWorldResource;
import com.yammer.dropwizard.Service;
import com.yammer.dropwizard.config.Environment;
import com.yammer.dropwizard.json.Json;
package com.github.sullis.dropwizard.helloworld;



public class HelloWorldService extends Service<HelloWorldServiceConfiguration> {

    public static void main(String[] args) throws Exception {
        new HelloWorldService().run(args);
    }

	private HelloWorldService() {
		super("helloworld");
	}

	@Override
	protected void initialize(HelloWorldServiceConfiguration configuration,
			Environment environment) throws Exception {

// Path: test/testapps/basicdropwizardapp/src/main/java/com/github/sullis/dropwizard/helloworld/resources/HelloWorldResource.java
// @Path("/helloworld")
// @Produces(MediaType.APPLICATION_JSON)
// @Consumes(MediaType.APPLICATION_JSON)
// public class HelloWorldResource {
// 
//     public HelloWorldResource() {
//     }
// 
//     @GET
//     @Timed(name = "get-requests")
//     public HelloMessage get(@QueryParam("name") Optional<String> name) {
//         HelloMessage hello = new HelloMessage();
//         hello.setMessage("Hello" + ( (name.isPresent()) ? " " + name.get() : ""));
//         return hello;
//     }
// }


// Path: test/testapps/basicdropwizardapp/src/main/java/com/github/sullis/dropwizard/helloworld/HelloWorldService.java
import org.codehaus.jackson.map.Module;
import com.github.sullis.dropwizard.helloworld.resources.HelloWorldResource;
import com.yammer.dropwizard.Service;
import com.yammer.dropwizard.config.Environment;
import com.yammer.dropwizard.json.Json;

package com.github.sullis.dropwizard.helloworld;



public class HelloWorldService extends Service<HelloWorldServiceConfiguration> {

    public static void main(String[] args) throws Exception {
        new HelloWorldService().run(args);
    }

	private HelloWorldService() {
		super("helloworld");
	}

	@Override
	protected void initialize(HelloWorldServiceConfiguration configuration,
			Environment environment) throws Exception {

		environment.addResource(HelloWorldResource.class);