/** * Prints the oid, but checks first if it is one of the usmStats error messages. If so, it * translates it to the usmStats string. */ public static String printOid(AsnObjectId oid) { String msg = ""; boolean found = false; int i = 0; while (i < usmStatsConstants.usmStatsOids.length && found == false) { AsnObjectId usmOid = new AsnObjectId(usmStatsConstants.usmStatsOids[i]); found = (oid.startsWith(usmOid) == true); i++; } if (found == true) { i--; msg = usmStatsConstants.usmStatsStrings[i]; } else { msg = oid.toString(); } return msg; }