} catch (Throwable t) {
// out of bounds, etc., if user gets tricky
throw new Exception("Invalid choice.");
}
final Group chosenGroup = groups[choice-1];
this.addImpl(dn, chosenGroup);
System.out.println("\nSUCCESS");
System.out.println("\nAdded DN: '" + dn + "'");
System.out.println("To group: '" + chosenGroup.getName() + "'");
System.out.println("\nGroup policies:");
System.out.println(ReportAll.policyBrief(chosenGroup.getRights(), ""));
System.out.println(
"\nAccess list: '" + chosenGroup.getIdentitiesFilePath() + "'\n");
final DateFormat format = DateFormat.getDateTimeInstance();
final String time = format.format(Calendar.getInstance().getTime());
System.out.println("Time: " + time + "\n");