@Override
 protected void pageLoaded() {
   if (StringUtility.isNullOrEmpty(request.getParameter("id"))) {
     csResources = null;
     redirect("/");
   } else
     try {
       id = Integer.parseInt(request.getParameter("id"));
     } catch (Exception e) {
       redirect("/");
     }
 }
 @Override
 protected void pagePreLoad() {
   isEdit = !StringUtility.isNullOrEmpty(request.getParameter("id"));
 }