code: public static byte[] extractTargetInfoFromType2Message(byte[] msg,
              Integer msgFlags) {
          int flags = msgFlags == null ? extractFlagsFromType2Message(msg)
                  : msgFlags;
  
          if (!ByteUtilities.isFlagSet(flags, FLAG_NEGOTIATE_TARGET_INFO))
              return null;
  
          int pos = 40; //isFlagSet(flags, FLAG_NEGOTIATE_LOCAL_CALL) ? 40 : 32;
  
          return readSecurityBufferTarget(msg, pos);
      }
docs: Extracts the target information block from the type 2 message.
  
  @param msg the type 2 message byte array
  @param msgFlags the flags if null then flags are extracted from the
  type 2 message
  @return the target info