Java:remove dependency on appengine