code: public static Link parse(final String serialized) throws IllegalArgumentException {
          try {
              final String[] parts = serialized.split(":");
              switch (parts.length) {
                  case 2: {
                      String[] nameSplit = parts[0].split("/");
                      String[] aliasSplit = parts[1].split("/");
                      return new Link(nameSplit[nameSplit.length - 1], aliasSplit[aliasSplit.length - 1]);
                  }
                  default: {
                      throw new IllegalArgumentException();
                  }
              }
          } catch (final Exception e) {
              throw new IllegalArgumentException("Error parsing Link '" + serialized + "'");
          }
      }
docs: Parses a textual link specification (as used by the Docker CLI) to a {@link Link}.
  
  @param serialized
  the specification, e.g. <code>name:alias</code> or <code>/name1:/name2/alias</code>
  @return a {@link Link} matching the specification
  @throws IllegalArgumentException
  if the specification cannot be parsed