code: public static int getDefaultFlags(Type1Message type1) {
          if (type1 == null) return DEFAULT_FLAGS;
          int flags = NTLMSSP_NEGOTIATE_NTLM;
          int type1Flags = type1.getFlags();
          flags |= ((type1Flags & NTLMSSP_NEGOTIATE_UNICODE) != 0) ?
                  NTLMSSP_NEGOTIATE_UNICODE : NTLMSSP_NEGOTIATE_OEM;
          if ((type1Flags & NTLMSSP_REQUEST_TARGET) != 0) {
              String domain = getDefaultDomain();
              if (domain != null) {
                  flags |= NTLMSSP_REQUEST_TARGET | NTLMSSP_TARGET_TYPE_DOMAIN;
              }
          }
          return flags;
      }
docs: Returns the default flags for a Type-2 message created in response
  to the given Type-1 message in the current environment.
  
  @return An <code>int</code> containing the default flags.