private static String convertAsciiHDSWwn(String wwn){
  if (wwn.length() % 2 != 0) {
    return null;
  }
  StringBuilder output=new StringBuilder();
  for (int i=0; i < wwn.length(); i+=2) {
    String str=wwn.substring(i,i + 2);
    output.append((char)Integer.parseInt(str,16));
  }
  return output.toString();
}

private static String convertAsciiHDSWwn ( String wwn ) { if ( wwn . length ( ) % 2 != 0 ) { return null ; } StringBuilder output = new StringBuilder ( ) ; for ( int i = 0 ; i < wwn . length ( ) ; i += 2 ) { String str = wwn . substring ( i , i + 2 ) ; output . append ( ( char ) Integer . parseInt ( str , 16 ) ) ; } return output . toString ( ) ; }
converts ascii encoded wwn returned from powerpath to useable wwn
