}
} else if (aname.equals("printer-state-reason")
|| aname.equals("printer-state-reasons")) {
PrinterStateReasons rs = new PrinterStateReasons();
String r;
Severity s;
for (int i = 0, ii = avalue.size(); i < ii; i++) {
r = new String((byte[]) avalue.get(i));
if (r.endsWith("-error")) {
r = r.substring(0, r.indexOf("-error"));
s = Severity.ERROR;