That was exactly the intention (fortunately), but I reckon it makes it a bit unclear. Remember the mechanism to select the proper factory (```XmlElementDecl```). The first ```test1.ObjectFactory``` should be selected over the ```test2.ObjectFactory```. 

I'll add some more body, so its used a well in other scenarios.