public static byte[] getLockData() {
    String str = String.format("%s:%s", HOST_NAME, Thread.currentThread().getName());
    return str.getBytes(UTF8);
  }
public static byte[] getLockData() {
    String str = String.format("%s:%s", HOST_NAME, Thread.currentThread().getName());
    return str.getBytes(UTF8);
  }
public static byte [ ] getLockData ( ) { String str = String . format ( "%s:%s" , HOST_NAME , Thread . currentThread ( ) . getName ( ) ) ; return str . getBytes ( UTF8 ) ; }
Returns lock data in a form of "hostname:threadName"
Returns lock data in a form of hostname : threadName