@Override
	public PrintService accept(PrintRequestAttributeSet set) {
		PrintService service = super.accept(set);
		if (mCopies != null) {
			PrintUtilities.setCopies(set, ((Integer) mCopies.getValue()).intValue());
		}
		if (mPageRangeAll != null) {
			if (mPageRangeAll.isSelected()) {
				PrintUtilities.setPageRanges(set, null);
			} else {
				int start = ((Integer) mPageRangeStart.getValue()).intValue();
				int end = ((Integer) mPageRangeEnd.getValue()).intValue();
				if (start > end) {
					int tmp = start;
					start = end;
					end = tmp;
				}
				PrintUtilities.setPageRanges(set, new PageRanges(start, end));
			}
		}
		return service;
	}