/* (non-Javadoc)
* @see com.adito.policyframework.actions.AbstractResourceDispatchAction#commitCreatedResource(org.apache.struts.action.ActionMapping, com.adito.policyframework.forms.AbstractResourceForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
*/
protected Resource commitCreatedResource(ActionMapping mapping, AbstractResourceForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
ApplicationShortcutForm asf = (ApplicationShortcutForm)form;
ApplicationShortcut as = (ApplicationShortcut)asf.getResource();
int resourceId = ApplicationShortcutDatabaseFactory.getInstance().createApplicationShortcut(
as.getApplication(), asf.getResourceName(), asf.getResourceDescription(),
as.getParameters(), as.isAutoStart(), getSessionInfo(request).getRealmId());
return as.getResourceType().getResourceById(resourceId);
}