}
}
// now we have a list of permissions, we need to make sure all of these are in the static security xml.
StaticSecurityResource restResource = new SecurityResource();
Configuration staticConfig = restResource.getConfiguration();
List<CPrivilege> privs = staticConfig.getPrivileges();
for (CPrivilege privilege : privs) {
staticPerms.add(this.getPermssionFromPrivilege(privilege));
}