title: Determine AppEngine for Java environment programmatically
body: <p>Is there a way to tell programmatically at run-time whether a Google App Engine application is running locally vs. hosted?  I'm looking for a way to call some custom stub code when running in a local development environment and make different calls when running hosted.</p>