Message message = new Message();
message.setText( "hello world!" );
System.out.println( "Initial Message: " + message.getText() );
InputStream encrypt = getClass().getResourceAsStream("./encrypt.xml");
InputStream decrypt = getClass().getResourceAsStream("./decrypt.xml");
Digester digester = new Digester();
digester.addRule( "*/email", new EmailRule() );
digester.addRule( "*/lower", new LowerRule() );
digester.addRule( "*/reverse", new ReverseRule() );
digester.addRule( "*/replace", new ReplaceRule() );
digester.push( message );
digester.parse( encrypt );
// digester.parse( decrypt );
System.out.println("Resulting Message: " + message.getText() );
digester.parse( decrypt );
System.out.println("Resulting Message: " + message.getText() );