List plays = new ArrayList();
InputStream input = getClass().getResourceAsStream("./plays.xml");
URL rules = getClass().getResource("./play-rules.xml");
Digester digester = DigesterLoader.createDigester(rules);
digester.push(plays);
Object root = digester.parse(input);
logger.debug("Number of plays: " + plays.size());
Play play = (Play) plays.get(0);
BeanWriter beanWriter = new BeanWriter();
beanWriter.enablePrettyPrint();
beanWriter.write(play);
logger.debug(beanWriter.toString());