public static function convertObjectsToResourceList(array $objects, $requireClass, $allowForm = true)
    {
        $list = new ResourceList();

        foreach ($objects as $i => $object) {
            static::validateObjectResource($object, $requireClass, $i, $allowForm);
            $list->add(new ResourceItem((object) $object));
        }

        return $list;
    }