A Java library that embodies a new approach to the implementation of prioritized default rules is described. Called DIPLOMAT, the approach is applied to a newly generalized version of courteous logic programs (LPs). As an example, an e-commerce application scenario is detailed.