PropertyList permissionList = (PropertyList) seq.getAttribute(AccessRightsPermissionsForm.ATTR_SELECTED_ACCESS_RIGHTS, null);
String permissionClass = (String) seq.getAttribute(AccessRightsDetailsForm.ATTR_RESOURCE_PERMISSION_CLASS, null);
AccessRights accessRights = null;
Calendar now = Calendar.getInstance();
try {
DefaultAccessRights defaultAccessRights = new DefaultAccessRights(info.getUser().getRealm().getRealmID(), 0, name, description, new ArrayList<AccessRight>(), permissionClass, now, now);
defaultAccessRights.setAllAccessRights(info.getHttpSession(), permissionList);
accessRights = PolicyDatabaseFactory.getInstance().createAccessRights(defaultAccessRights);
actionStatus.add(new WizardActionStatus(WizardActionStatus.COMPLETED_OK,
"accessRightsWizard.resourceFinish.status.resourceCreated"));