int xres = res.getCrossFeedResolution(PrinterResolution.DPI);
int yres = res.getFeedResolution(PrinterResolution.DPI);
printAttributes[XRESOLUTION_INDEX] = xres;
printAttributes[YRESOLUTION_INDEX] = yres;
} else if (category.equals(SheetCollate.class)) {
SheetCollate collate = (SheetCollate)requestAttrs[i];
if (collate == SheetCollate.COLLATED) {
printAttributes[COLLATE_INDEX] = 1;
} else if (collate == SheetCollate.UNCOLLATED) {
printAttributes[COLLATE_INDEX] = 0;
}