code: public void checkPermission(String actions) throws AccessControlException, RepositoryException
     {
        checkValid();
  
        if (!session.getAccessManager().hasPermission(getACL(), actions, session.getUserState().getIdentity()))
        {
           throw new AccessControlException("Permission denied " + getPath() + " : " + actions);
        }
     }
docs: {@inheritDoc}