code: private EventParameters createEventParameters(Map<String,String> pParams){
          EventParameters evParams = EventParameters.Factory.newInstance();
          for (String name : pParams.keySet()) {
               String val = pParams.get(name);
               if(val == null){
                   continue;
               }
               Parameter evParam = evParams.addNewParameter();
               evParam.setName(name);
               evParam.setStringValue(val);
           }
           return evParams;
  
      }
docs: Method that creates the event params based on the passed in Map
  @param pParams
  @return EventParameters