List<Entry> permissionSetStructure = EntryFactory.globalPermissionSetStructure(permissionSet);
try {
dao.store(permissionSetStructure);
storePermissions(SchemaConstants.ouGlobalPermissionsDirect(permissionSet), permission);
} catch (EntryAlreadyExistsException e) {
throw new PermissionSetAlreadyExistsException();
} catch (MissingParentException e) {
throw new LdapRuntimeException(e);
}
}