code: public byte[] getUID(final UniqueIdType type, final String name) {
      try {
        return getUIDAsync(type, name).join();
      } catch (NoSuchUniqueName e) {
        throw e;
      } catch (IllegalArgumentException e) {
        throw e;
      } catch (Exception e) {
        LOG.error("Unexpected exception", e);
        throw new RuntimeException(e);
      }
    }
docs: Attempts to find the UID matching a given name
  @param type The type of UID
  @param name The name to search for
  @throws IllegalArgumentException if the type is not valid
  @throws NoSuchUniqueName if the name was not found
  @since 2.0