+ public void handleCommand(
+ final Namespace ns, final Manager m, final OutputWriter outputWriter
+ ) throws CommandException {
+ final URI linkUri;
+ try {
+ linkUri = new URI(ns.getString("uri"));
+ } catch (URISyntaxException e) {
+ throw new UserErrorException("Device link uri has invalid format: " + e.getMessage());
+ }
+