package com.quiptiq.wurmrest;

import javax.validation.Valid;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import com.quiptiq.wurmrest.rmi.RmiProviderFactory;
import io.dropwizard.Configuration;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.hibernate.validator.constraints.NotEmpty;


/**
 * Encapsulates DropWizard Configuration
 */
public class WurmRestConfiguration extends Configuration {
    @NotEmpty
    private String template;

    @NotEmpty
    private String defaultName = "Stranger";

    @NotNull
    @Valid
    private RmiProviderFactory rmiProviderFactory = new RmiProviderFactory();

    @JsonProperty("rmi")
    public void setRmiProviderFactory(RmiProviderFactory rmiProviderFactory) {
        this.rmiProviderFactory = rmiProviderFactory;
    }

    @JsonProperty("rmi")
    public RmiProviderFactory getRmiProviderFactory() {
        return rmiProviderFactory;
    }

    @JsonProperty
    public String getTemplate() {
        return template;
    }

    @JsonProperty
    public void setTemplate(String template) {
        this.template = template;
    }

    @JsonProperty
    public String getDefaultName() {
        return defaultName;
    }

    @JsonProperty
    public void setDefaultName(String defaultName) {
        this.defaultName = defaultName;
    }
}

@@ -492,112 +492,8 @@
 n %7B%0A
-    @NotEmpty%0A    private String template;%0A%0A    @NotEmpty%0A    private String defaultName = %22Stranger%22;%0A%0A
     
@@ -883,403 +883,6 @@
  %7D%0A%0A
-    @JsonProperty%0A    public String getTemplate() %7B%0A        return template;%0A    %7D%0A%0A    @JsonProperty%0A    public void setTemplate(String template) %7B%0A        this.template = template;%0A    %7D%0A%0A    @JsonProperty%0A    public String getDefaultName() %7B%0A        return defaultName;%0A    %7D%0A%0A    @JsonProperty%0A    public void setDefaultName(String defaultName) %7B%0A        this.defaultName = defaultName;%0A    %7D%0A
 %7D%0A

Remove leftovers from example config