ExecutorService getExecutorService() {
if (executorService == null) {
synchronized (this) {
if (VmUtils.isInGoogleAppEngine()) {
// no Thread support. Run all tasks on the caller thread
executorService = new AbstractExecutorService() {
/** {@inheritDoc} */
public void execute(Runnable command) {
command.run();
}