protected function throwExceptionIfProtected()
{
if ($this->protected) {
throw new ResourceException(sprintf('Tried to set a property of the resource object with SHA1 hash %s after it has been protected. Modifications are not allowed as soon as the PersistentResource has been published or persisted.', $this->sha1), 1377852347);
}
}