class XmlApplicationConfigParser implements ApplicationConfigParser {

	@Override
	public ApplicationConfig parse(InputStream inputStream) {
		Digester digester = new Digester();
		digester.addObjectCreate("Application", ApplicationConfig.class);
        for (String filed : fiedlds) {
            digester.addBeanPropertySetter("Application/"+filed);
        }
        try {
			return (ApplicationConfig) digester.parse(inputStream);
		} catch (IOException e) {
			e.printStackTrace();
		} catch (SAXException e) {
			e.printStackTrace();
		}
		return null;
	}

}