public static void setResolution(PrintRequestAttributeSet set, PrinterResolution resolution) {
		if (resolution != null) {
			set.add(resolution);
		} else {
			set.remove(PrinterResolution.class);
		}
	}