// Path: src/main/java/de/onyxbits/tradetrax/services/SettingsStore.java
// public interface SettingsStore {
// 
// 	/**
// 	 * The (visual) string that represents the currency of the ledger.
// 	 */
// 	public static final String CURRENCYSYMBOL = "currencysymbol";
// 
// 	/**
// 	 * How many digits to display by default.
// 	 */
// 	public static final String DECIMALS = "decimals";
// 
// 	/**
// 	 * Human readable name of the ledger
// 	 */
// 	public static final String LEDGERTITLE = "ledgertitle";
// 
// 	/**
// 	 * Whether or not to show the instructionsblock in the sidebar.
// 	 */
// 	public static final String HIDEINSTRUCTIONS = "hideinstructions";
// 	
// 	/**
// 	 * Whether or not to show the calculator in the sidebar
// 	 */
// 	public static final String SHOWCALCULATOR = "showcalculator";
// 	
// 	/**
// 	 * Columns to show for the tradecenter ledger.
// 	 */
// 	public static final String TCLCOLUMNS = "tclcolumns";
// 	
// 	/**
// 	 * Fields to show on the tradecenter acquisition form.
// 	 */
// 	public static final String TCACFIELDS = "tcafields";
// 	
// 	/**
// 	 * When the ledger was created
// 	 */
// 	public static final String CREATED = "created";
// 	
// 	/**
// 	 * How wide the page may be
// 	 */
// 	public static final String PAGEWIDTH = "pagewidth";
// 
// 	/**
// 	 * Get a setting
// 	 * 
// 	 * @param key
// 	 *          the kay of the setting
// 	 * @param value
// 	 *          default value if key does not exist
// 	 * @return the value
// 	 */
// 	public String get(String key, String value);
// 
// 	/**
// 	 * Enter a setting into the storage
// 	 * 
// 	 * @param key
// 	 *          key name
// 	 * @param value
// 	 *          value
// 	 */
// 	public void set(String key, String value);
// }


import java.sql.Timestamp;
import javax.servlet.ServletException;
import org.apache.tapestry5.TapestryFilter;
import org.apache.tapestry5.ioc.Registry;
import de.onyxbits.tradetrax.services.SettingsStore;
package de.onyxbits.tradetrax.main;





/**
 * Servlet Bootup class
 * @author patrick
 *
 */
public class TradeTraxFilter extends TapestryFilter {

	protected void init(Registry registry) throws ServletException {
		
// Path: src/main/java/de/onyxbits/tradetrax/services/SettingsStore.java
// public interface SettingsStore {
// 
// 	/**
// 	 * The (visual) string that represents the currency of the ledger.
// 	 */
// 	public static final String CURRENCYSYMBOL = "currencysymbol";
// 
// 	/**
// 	 * How many digits to display by default.
// 	 */
// 	public static final String DECIMALS = "decimals";
// 
// 	/**
// 	 * Human readable name of the ledger
// 	 */
// 	public static final String LEDGERTITLE = "ledgertitle";
// 
// 	/**
// 	 * Whether or not to show the instructionsblock in the sidebar.
// 	 */
// 	public static final String HIDEINSTRUCTIONS = "hideinstructions";
// 	
// 	/**
// 	 * Whether or not to show the calculator in the sidebar
// 	 */
// 	public static final String SHOWCALCULATOR = "showcalculator";
// 	
// 	/**
// 	 * Columns to show for the tradecenter ledger.
// 	 */
// 	public static final String TCLCOLUMNS = "tclcolumns";
// 	
// 	/**
// 	 * Fields to show on the tradecenter acquisition form.
// 	 */
// 	public static final String TCACFIELDS = "tcafields";
// 	
// 	/**
// 	 * When the ledger was created
// 	 */
// 	public static final String CREATED = "created";
// 	
// 	/**
// 	 * How wide the page may be
// 	 */
// 	public static final String PAGEWIDTH = "pagewidth";
// 
// 	/**
// 	 * Get a setting
// 	 * 
// 	 * @param key
// 	 *          the kay of the setting
// 	 * @param value
// 	 *          default value if key does not exist
// 	 * @return the value
// 	 */
// 	public String get(String key, String value);
// 
// 	/**
// 	 * Enter a setting into the storage
// 	 * 
// 	 * @param key
// 	 *          key name
// 	 * @param value
// 	 *          value
// 	 */
// 	public void set(String key, String value);
// }


// Path: src/main/java/de/onyxbits/tradetrax/main/TradeTraxFilter.java
import java.sql.Timestamp;
import javax.servlet.ServletException;
import org.apache.tapestry5.TapestryFilter;
import org.apache.tapestry5.ioc.Registry;
import de.onyxbits.tradetrax.services.SettingsStore;

package de.onyxbits.tradetrax.main;





/**
 * Servlet Bootup class
 * @author patrick
 *
 */
public class TradeTraxFilter extends TapestryFilter {

	protected void init(Registry registry) throws ServletException {
		
		SettingsStore ss = registry.getService(SettingsStore.class);