String owner = ((OwnedResource) resource).getOwnerUsername();
if (owner != null && !owner.equals("")) {
ownerUser = UserDatabaseManager.getInstance().getUserDatabase(session.getUser().getRealm()).getAccount(owner);
}
}
PropertyList selectedPolicies = new PropertyList();
MultiSelectPoliciesSelectionModel policyModel = initSelectModel(selectedPolicies, ((AbstractResourceForm) form).isShowPersonalPolicies(), resource, session);
String referer = CoreUtil.getReferer(request);
((CoreForm) form).setReferer(referer);
((AbstractResourceForm) form).initialise(request, resource, true, policyModel, selectedPolicies, ownerUser, isAssignOnly(resource, session));
return display(mapping, form, request, response);