} catch(final Throwable ex) {
LOG.error("Exception while instantiating security permission class.", ex);
}
return permission;
}
<BUG>public interface PermissionModifier {
public void modify(Permission permission) throws PermissionDeniedException;
}
public static void updatePermissions(DBBroker broker, XmldbURI pathUri, PermissionModifier permissionModifier) throws PermissionDeniedException {
</BUG>
DocumentImpl doc = null;

} catch(final Throwable ex) {
LOG.error("Exception while instantiating security permission class.", ex);
}
return permission;
}
public static void updatePermissions(final DBBroker broker, final XmldbURI pathUri, final ConsumerE<Permission, PermissionDeniedException> permissionModifier) throws PermissionDeniedException {
DocumentImpl doc = null;
