Update RootResourceFactory.php