code: public static String encodeMACAddress(byte[] address) throws IOException {
         char[] chars = Hex.encodeHex(address);
         StringBuffer buf = new StringBuffer(MAC_ADDRESS_CHAR_LENGTH);
         for (int i = 0; i < chars.length; i++) {
                 buf.append(chars[i]);
                 if (i != chars.length - 1 && i % 2 != 0) {
                     buf.append("-");
                 }
         }
         return buf.toString().toUpperCase();
      }
docs: <p>Returns the node id / address byte array in it's hexidecimal string
  representation in the following format: XX-XX-XX-XX-XX-XX where each XX
  represents a hexidecimal value.</p>
  
  @param address the 6 byte node id / address.
  @return the node id /address byte array in as hexidecimal with dash
  separating each octet.
  @throws IOException an Input Output Exception.