<%!

URI getURI(Entry[] entries) throws Exception {
	for(int i=entries.length-1; i>=0; i--) {
		if(!(entries[i] instanceof AttributeEntry)) continue;
        AttributeEntry entry = (AttributeEntry )entries[i];
		if(!"javax.print.attribute.standard.PrinterURI".equals(entry.category)) continue;
		return ((PrinterURI)entry.value).getURI();
	}
    return null;
}

String getOrganization(Entry[] entries) throws Exception {
	for(int i=entries.length-1; i>=0; i--) {
		if(!(entries[i] instanceof Address)) continue;
                Address entry = (Address )entries[i];
                return entry.organization;
	}
    return null;
}

%>
