code: private static boolean authenticateAuthorizationHeader(Map<String,String> headers) {
          String hdr = headers.get(Listener.AUTHORIZATION_HEADER_NAME);
          if (hdr == null)
              hdr = headers.get(Listener.AUTHORIZATION_HEADER_NAME.toLowerCase());
  
          headers.remove(Listener.AUTHORIZATION_HEADER_NAME);
          headers.remove(Listener.AUTHORIZATION_HEADER_NAME.toLowerCase());
  
          if (hdr != null && hdr.startsWith("Basic"))
              return checkBasicAuthenticationHeader(hdr, headers);
          else if (hdr != null && hdr.startsWith("Bearer"))
              return checkBearerAuthenticationHeader(hdr, headers);
  
          return false;
      }
docs: <p>
  Currently uses the metainfo property "Authorization" and checks
  specifically for Basic Authentication or MDW-JWT Authentication.
  In the future, probably change this.
  </p>
  <p>
  TODO: call this from every protocol channel
  If nothing else we should to this to avoid spoofing the AUTHENTICATED_USER_HEADER.
  </p>
  @param headers
  @return