title: Need help returning to BlackBerry application from BrowserSession
body: <p>My BlackBerry application is using a BrowserSession to open up a web page. When the web page opens up, the user will type in their login credentials, and then they are forwarded to a new website which tells them to close the BlackBerry Browser and return to my application. (...OAuth authentication)</p>
  
  <p>Now, I am trying to see if I can do one of the following:</p>
  
  <ul>
  <li><p>Create a custom URI scheme for my application, so that the website can forward to an address such as "myapp://..." and my application will open up. I have been researching online and on the forums about this, and I don't think its possible. I have been searching a lot about JSR 211 and content handlers and MIME types. I also looked into the chapidemo demo in the JDE samples.</p></li>
  <li><p>Close the BrowserSession. I know that I cannot do this from within my application. I successfully moved my application to the foreground after my application made a successful http request, but the browser comes BACK to the foreground when the website forwards to the new page (which tells the user to close the browser)</p></li>
  <li><p>Somehow determine the URL of the current BrowserSession. If I could do that, then I could have my application to the foreground when I recognize the URL of the page that was forwarded to.</p></li>
  </ul>
  
  <p>Unfortunately, I cannot use a BrowserField because the site that I open up in the browser needs to support javascript and ajax...I tried this in the BrowserField, and it didn't work. </p>
  
  <p>Does anyone have any advice or suggestions? </p>
  
  <p>Thanks!</p>
  
  <hr>
  
  <p>Update:</p>
  
  <p>My code to register:</p>
  
  <pre><code>BrowserContentProviderRegistry converterRegistry = BrowserContentProviderRegistry
                  .getInstance();
          if (converterRegistry != null) {
              converterRegistry.register(new BrowserPlugin());
          }
  </code></pre>