}
@Override
public PrintServiceAttributeSet getAttributes(){
PrintServiceAttributeSet attrs = new HashPrintServiceAttributeSet();
attrs.add(getPrinterName());
PrinterIsAcceptingJobs acptJobs = getAttribute(PrinterIsAcceptingJobs.class);
if(acptJobs != null){
attrs.add(acptJobs);
}
PrinterState prnState = getAttribute(PrinterState.class);
if(prnState != null){
attrs.add(prnState);
}
PrinterStateReasons prnStateReasons = getAttribute(PrinterStateReasons.class);
if(prnStateReasons != null){
attrs.add(prnStateReasons);
}
QueuedJobCount jobCount = getAttribute(QueuedJobCount.class);
if(jobCount != null){
attrs.add(jobCount);
}
// TODO: Seems to be more accurate than settings.get_SupportsColor(), which doesn't work for CutePDF
if(settings.get_DefaultPageSettings().get_Color()){
attrs.add(ColorSupported.SUPPORTED);
}else{
attrs.add(ColorSupported.NOT_SUPPORTED);
}
return AttributeSetUtilities.unmodifiableView(attrs);
}