private function addObjects($objects, &$container)
    {
        if (!is_array($objects))
        {
            $objects = [$objects];
        }
        foreach ($objects as $object)
        {
            if ($object->getObjectId() == null)
            {
                $container['null'][] = $object;
            } else
            {
                $container[$object->getObjectID()] = $object;
            }
        }
    }