public static String decodeActionParam(String param) {
   ParameterMap pm = FacesUtils.getParameterMap(FacesUtils.getContext());
   if (pm == null) return param;
   String action = StringUtils.toString(pm.get(ACTION_PARAMETER_TYPE, param));
   if (action == null) log.warn("no action available for param {}.", param);
   return action;
 }
 private static String encodeActionParam(String action) {
   ParameterMap pm = FacesUtils.getParameterMap(FacesUtils.getContext());
   if (pm == null) return action;
   return pm.put(ACTION_PARAMETER_TYPE, action, true);
 }