code: public void checkPermission(String absPath, String actions) throws AccessControlException
     {
        try
        {
           JCRPath jcrPath = locationFactory.parseAbsPath(absPath);
           AccessControlList acl = dataManager.getACL(jcrPath.getInternalPath());
           if (!accessManager.hasPermission(acl, actions, getUserState().getIdentity()))
           {
              throw new AccessControlException("Permission denied " + absPath + " : " + actions);
           }
        }
        catch (RepositoryException e)
        {
           throw new AccessControlException("Could not check permission for " + absPath + " " + e);
        }
     }
docs: {@inheritDoc}