diff --git a/api/current.xml b/api/current.xml
index ce2ac27180028..83b201ca88f98 100644
--- a/api/current.xml
+++ b/api/current.xml
@@ -165277,6 +165277,51 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
stubClass =
+ pluginCL.loadClass(className);
+ Constructor> stubConstructor =
+ stubClass.getConstructor(int.class);
+ Object stubObject = stubConstructor.newInstance(NPP);
+
+ if (stubObject instanceof PluginStub) {
+ return (PluginStub) stubObject;
+ } else {
+ Log.e(LOGTAG, "The plugin class is not of type PluginStub");
+ }
+ } catch (Exception e) {
+ // Any number of things could have happened. Log the exception and
+ // return null. Careful not to use Log.e(LOGTAG, "String", e)
+ // because that reports the exception to the checkin service.
+ Log.e(LOGTAG, Log.getStackTraceString(e));
+ }
+ return null;
+ }
+}