code: public void setSegmentReject(String reject) {
  		if (!StringUtils.hasText(reject)) {
  			return;
  		}
  		Integer parsedLimit = null;
  		try {
  			parsedLimit = Integer.parseInt(reject);
  			segmentRejectType = SegmentRejectType.ROWS;
  		} catch (NumberFormatException e) {
  		}
  		if (parsedLimit == null && reject.contains("%")) {
  			try {
  				parsedLimit = Integer.parseInt(reject.replace("%", "").trim());
  				segmentRejectType = SegmentRejectType.PERCENT;
  			} catch (NumberFormatException e) {
  			}
  		}
  		segmentRejectLimit = parsedLimit;
  	}
docs: Sets the segment reject as a string. This method is for convenience
  to be able to set percent reject type just by calling with '3%' and
  otherwise it uses rows. All this assuming that parsing finds '%' characher
  and is able to parse a raw reject number.
  
  @param reject the new segment reject