code: private Param getQueryParam(List<Param> optionalParams) {
  		for (Param p : optionalParams) {
  			if (p == null) {
  				continue;
  			}
  			
  			if (p.getType().equals(ParamEnum.QUERY.name)) {
  				return p;
  			}
  		}
  
  		return null;
  	}
docs: FIXME Extract the ArrayList to a Class