docs: protected void associateBatched(Collection owners, Collection children)
      {
          ObjectReferenceDescriptor ord = getObjectReferenceDescriptor();
          ClassDescriptor cld = getOwnerClassDescriptor();
          Object owner;
          Object relatedObject;
          Object fkValues[];
          Identity id;
          PersistenceBroker pb = getBroker();
          PersistentField field = ord.getPersistentField();
          Class topLevelClass = pb.getTopLevelClass(ord.getItemClass());
          HashMap childrenMap = new HashMap(children.size());
  
  
          for (Iterator it = children.iterator(); it.hasNext(); )
          {
              relatedObject = it.next();
              childrenMap.put(pb.serviceIdentity().buildIdentity(relatedObject), relatedObject);
          }
  
          for (Iterator it = owners.iterator(); it.hasNext(); )
          {
              owner = it.next();
              fkValues = ord.getForeignKeyValues(owner,cld);
              if (isNull(fkValues))
              {
                  field.set(owner, null);
                  continue;
              }
              id = pb.serviceIdentity().buildIdentity(null, topLevelClass, fkValues);
              relatedObject = childrenMap.get(id);
              field.set(owner, relatedObject);
          }
      }