package com.socrata.balboa.server.rest;

import com.sun.jersey.spi.container.servlet.ServletContainer;
import org.apache.log4j.PropertyConfigurator;

import javax.servlet.ServletException;
import java.io.IOException;
import java.util.Properties;

public class RestServlet extends ServletContainer
{
    @Override
    public void init() throws ServletException
    {
        super.init();

        try
        {
            Properties p = new Properties();
            p.load(RestServlet.class.getClassLoader().getResourceAsStream("config/config.properties"));
            PropertyConfigurator.configure(p);
        }
        catch (IOException e)
        {
            throw new RuntimeException("Unable to load configuration.", e);
        }
    }
}

@@ -34,16 +34,72 @@
 .rest;%0A%0A
+import com.socrata.balboa.metrics.config.Configuration;%0A
 import c
@@ -152,16 +152,16 @@
 tainer;%0A
-
 import o
@@ -269,37 +269,8 @@
 ion;
-%0Aimport java.util.Properties;
 %0A%0Apu
@@ -447,142 +447,49 @@
     
-Properties p = new Properties();%0A            p.load(RestServlet.class.getClassLoader().getResourceAsStream(%22
+Configuration 
 config
-/c
+ = C
 onfig
-.properties%22)
+uration.get(
 );%0A 
@@ -530,17 +530,22 @@
 nfigure(
-p
+config
 );%0A     

Use configuration class instead of properties in RestServlet