* @return <code>true</code> if this entry has specified <tt>permission</tt>
* and type of grant.
*/
private boolean isGrantedForGroup(GroupAce ace, Authentication authentication,
Permission permission, boolean isCheckAllowedGrant) {
Permission permissionToComapare = ace.getPermission();
if (permissionToComapare == null) {
permissionToComapare = pluginPermissionManager.findPluginsBranchPermissionByMask(ace.getPermissionMask());
}
return ace.isGranting() == isCheckAllowedGrant
&& permission.equals(permissionToComapare)