* TODO(mmendez): this should be private or package protected
*/
public static JavaScriptObject create(String className, String version)
throws GearsException {
if (!Gears.isInstalled()) {
throw new GearsException("Google Gears is not installed.");
}
try {
JavaScriptObject jso = nativeCreate(className, version);
assert (jso != null);
return jso;
} catch (JavaScriptException e) {
throw new GearsException(e.getMessage(), e);
}
}