Rob Spoor wrote:You can import one; that already decreases your problem by half.
And how would I import the other? I guess subclass it.. or abstract it?
Of course the obvious answer is use better names but.. unfortunately .. I'm stuck..
I'm taking the subclass route, now that you mention it. It's.. sloppy.. I know.. but... Java could use a typedef kind of keyword. It screams for it. Especially with all these frameworks using common name like "Node", "Item", "Session" jcr is completely built like that.. and that's a Java spec...