public function getCreatorArgumentsForPagePartAndProperties($pagePartClassName, array $setters = null)
    {
        return function () use ($pagePartClassName, $setters) {
            $pp = new $pagePartClassName();

            if (!is_null($setters)) {
                foreach ($setters as $setter => $value) {
                    call_user_func(array($pp, $setter), $value);
                }
            }

            return $pp;
        };
    }