// Path: src/java/rocks/teammolise/myunimol/webapp/configuration/ConfigurationManagerHandler.java
// public class ConfigurationManagerHandler {
// 	
// 	private static String filename;
//     
//     public static ConfigurationManager getInstance(){
//        
//         ConfigurationManager confManager = new ConfigurationManager(filename);
//               
//         return confManager;        
//     }
//     
//     public static void setConfigurationFilename(String pFilename) {
//     	filename = pFilename;
//     }
// }


import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import rocks.teammolise.myunimol.webapp.configuration.ConfigurationManagerHandler;
package rocks.teammolise.myunimol.webapp;




/**
 * Servlet implementation class Startup
 */

@WebServlet(name="config", urlPatterns={"/config"}, loadOnStartup=0)
public class ConfigureServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public ConfigureServlet() {
        super();
    }

    @Override
    public void init() throws ServletException {
    	super.init();
    	String configPath = this.getServletContext().getRealPath("/META-INF/config.properties");
// Path: src/java/rocks/teammolise/myunimol/webapp/configuration/ConfigurationManagerHandler.java
// public class ConfigurationManagerHandler {
// 	
// 	private static String filename;
//     
//     public static ConfigurationManager getInstance(){
//        
//         ConfigurationManager confManager = new ConfigurationManager(filename);
//               
//         return confManager;        
//     }
//     
//     public static void setConfigurationFilename(String pFilename) {
//     	filename = pFilename;
//     }
// }


// Path: src/java/rocks/teammolise/myunimol/webapp/ConfigureServlet.java
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import rocks.teammolise.myunimol.webapp.configuration.ConfigurationManagerHandler;

package rocks.teammolise.myunimol.webapp;




/**
 * Servlet implementation class Startup
 */

@WebServlet(name="config", urlPatterns={"/config"}, loadOnStartup=0)
public class ConfigureServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public ConfigureServlet() {
        super();
    }

    @Override
    public void init() throws ServletException {
    	super.init();
    	String configPath = this.getServletContext().getRealPath("/META-INF/config.properties");
    	ConfigurationManagerHandler.setConfigurationFilename(configPath);