+ var number = ns.getString("number");
+ var name = ns.getString("name");
+
+ try {
+ m.setContactName(number, name);
+
+ var expiration = ns.getInt("expiration");
+ if (expiration != null) {
+ m.setExpirationTimer(number, expiration);
+ }
+ } catch (InvalidNumberException e) {
+ System.err.println("Invalid contact number: " + e.getMessage());