private String createIdentity(byte[] mac){
  StringBuilder sb=new StringBuilder("jmri-");
  try {
    for (int i=0; i < mac.length; i++) {
      sb.append(String.format("%02X",mac[i]));
    }
  }
 catch (  NullPointerException ex) {
    return null;
  }
  return sb.toString();
}

private String createIdentity ( byte [ ] mac ) { StringBuilder sb = new StringBuilder ( "jmri-" ) ; try { for ( int i = 0 ; i < mac . length ; i ++ ) { sb . append ( String . format ( "%02X" , mac [ i ] ) ) ; } } catch ( NullPointerException ex ) { return null ; } return sb . toString ( ) ; }
create an identity string given a mac address .
