private final void processPrivileges(ArrayList<String> privs, PrivilegeHolder entity) {
		if(entity == null || privs == null)
			return;
		
		// Denials
		ArrayList<String> denials = entity.getDenials();
		for(String denial: denials) {
			if(denial.equals("*")){
				privs.clear();
				break;
			}
			
			privs.remove(denial);
		}
		
		// Allowances
		ArrayList<String> allowances = entity.getAllowances();
		for(String allowance: allowances) {
			if(allowance.equals("*")){
				ArrayList<String> t = getRegisteredPrivileges();
				if(t != null) {
					privs.clear();
					privs.addAll(t);
					return;
				}
				else {
					onError(ERROR_ALLOWANCE_WILDCARD_WITHOUT_KNOWN_PRIVS);
				}
			}
			else{
				privs.add(allowance);
			}
		}
	}