final boolean[] hasChildFieldItem = new boolean[1];
// compute the multiplicity of the all child JavaItems and
// also compute whether this branch has FieldItem in it.
Multiplicity m = Multiplicity.calc( b[i],
new MultiplicityCounter(){
protected Multiplicity isChild( Expression exp ) {
if(exp instanceof FieldItem) hasChildFieldItem[0] = true;
if(exp instanceof PrimitiveItem) bBranchWithPrimitive[0] = true;
if(exp instanceof IgnoreItem) return Multiplicity.zero;