code: public void addItemPersistenceListener(String workspaceName, ItemsPersistenceListener listener)
     {
        SecurityHelper.validateSecurityPermission(JCRRuntimePermissions.MANAGE_REPOSITORY_PERMISSION);
  
        PersistentDataManager pmanager =
           (PersistentDataManager)repositoryContainer.getWorkspaceContainer(workspaceName).getComponentInstanceOfType(
              PersistentDataManager.class);
  
        pmanager.addItemPersistenceListener(listener);
     }
docs: {@inheritDoc}