code: public static AddressType guessDeviceAddressType(URL url) {
          if (url.getDeviceAddress() == null) {
              return AddressType.COMPOSITE;
          }
          return guessAddressType(url.getDeviceAddress());
      }
docs: Guesses address type of the provided Bluetooth address. There is not any easy way to identify definitively
  address type by using Bluetooth address only, hence the following logic is used to the best make a guess.
  @param url device URL
  @return guessed address type