In the NodeFactory there are two ways to create a blank node (bNode):
In the first case bNode.getBlankNodeId() will return anonId (which is most probably a string). In the second case the actual blank node id is wrapped in an AnonIdStr object.
Which variant is the official interface?