/* (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 {
NetworkPlaceForm npf = (NetworkPlaceForm)form;
return NetworkPlaceDatabaseFactory.getInstance().createNetworkPlace(
npf.getScheme(), npf.getResourceName(), npf.getResourceDescription(),
npf.getHost(), npf.getPath(), npf.getPort(), npf.getUsername(),
npf.getPassword(), npf.getReadOnly(), npf.isAllowRecursive(),
npf.isNoDelete(), npf.isShowHidden(), npf.isAutoStart(), getSessionInfo(request).getRealmId());
}