digester.addRuleSet( new ChannelMapRuleSet( "*/photo/") );
digester.addRule( "*/photo/color-mapping", new Rule() {
public void end( String namespace, String name ) {
PhotoInfo p = (PhotoInfo) digester.peek(1);
ChannelMapOperationFactory f =
(ChannelMapOperationFactory) digester.peek();
p.setColorChannelMapping( f.create() );
}
});
digester.addObjectCreate( "*/photo/raw-conversion", RawSettingsFactory.class );