public boolean checkPermission(Permission checkPermission) {
boolean hasPermission = false;
Iterator iterator = permissions.iterator();
while (iterator.hasNext()) {
Permission permission = (Permission) iterator.next();
if (permission.implies(checkPermission)) {
hasPermission = true;
}
}
return hasPermission;
}