protected function throwExceptionIfObjectIsNotWhitelisted($object)
    {
        if (!$this->whitelistedObjects->contains($object)) {
            $message = 'Detected modified or new objects (' . get_class($object) . ', uuid:' . $this->getIdentifierByObject($object) . ') to be persisted which is not allowed for "safe requests"' . chr(10) .
                    'According to the HTTP 1.1 specification, so called "safe request" (usually GET or HEAD requests)' . chr(10) .
                    'should not change your data on the server side and should be considered read-only. If you need to add,' . chr(10) .
                    'modify or remove data, you should use the respective request methods (POST, PUT, DELETE and PATCH).' . chr(10) . chr(10) .
                    'If you need to store some data during a safe request (for example, logging some data for your analytics),' . chr(10) .
                    'you are still free to call PersistenceManager->persistAll() manually.';
            throw new PersistenceException($message, 1377788621);
        }
    }