protected static TypeBean parse( InputStream in ) throws Exception {
TypeBean bean = new TypeBean();
Digester digester = new Digester();
digester.push(bean);
digester.setValidating(false);
digester.addObjectCreate("templates-description/template","org.nextime.ion.frontoffice.bean.TypeBean");
digester.addSetProperties("templates-description/template");
digester.addSetNext("templates-description/template","addBean");
digester.addCallMethod("templates-description/template/description","setDescription",0);
digester.addCallMethod("templates-description/template/publication-types","setPublicationTypes",0);
digester.addObjectCreate("templates-description/template/property","org.nextime.ion.frontoffice.bean.PropertyBean");