package com.example.samplemodule;

import java.util.List;

import com.artech.application.MyApplication;
import com.artech.externalapi.ExternalApi;

public class BasicExternalObject extends ExternalApi {
	private static final String METHOD_HELLO = "Hello";
	private static final String METHOD_MESSAGE = "Message";

	public BasicExternalObject() {
		addSimpleMethodHandler(METHOD_HELLO, 0, mMethodHello);
		addSimpleMethodHandler(METHOD_MESSAGE, 1, mMethodMessage);
	}

	private final ISimpleMethodInvoker mMethodHello = new ISimpleMethodInvoker() {
		@Override
		public Object invoke(List<Object> parameters) {
			MyApplication.getInstance().showMessage(getContext().getString(com.example.genexusmodule.R.string.hello_message));
			return null;
		}
	};

	private final ISimpleMethodInvoker mMethodMessage = new ISimpleMethodInvoker() {
		@Override
		public Object invoke(List<Object> parameters) {
			final String text = (String) parameters.get(0);
			MyApplication.getInstance().showMessage(text);
			return null;
		}
	};
}

@@ -52,16 +52,100 @@
 .List;%0A%0A
+import android.support.annotation.NonNull;%0A%0Aimport com.artech.actions.ActionResult;%0A
 import c
@@ -223,16 +223,65 @@
 rnalApi;
+%0Aimport com.artech.externalapi.ExternalApiResult;
 %0A%0Apublic
@@ -473,30 +473,24 @@
 ct() %7B%0A%09%09add
-Simple
 MethodHandle
@@ -528,22 +528,16 @@
 );%0A%09%09add
-Simple
 MethodHa
@@ -590,38 +590,32 @@
 %09private final I
-Simple
 MethodInvoker mM
@@ -624,38 +624,32 @@
 hodHello = new I
-Simple
 MethodInvoker() 
@@ -663,37 +663,57 @@
 erride%0A%09%09public 
-Objec
+@NonNull ExternalApiResul
 t invoke(List%3COb
@@ -853,35 +853,83 @@
 e));%0A%09%09%09return n
-ull
+ew ExternalApiResult(ActionResult.SUCCESS_CONTINUE)
 ;%0A%09%09%7D%0A%09%7D;%0A%0A%09priv
@@ -939,22 +939,16 @@
  final I
-Simple
 MethodIn
@@ -979,14 +979,8 @@
 ew I
-Simple
 Meth
@@ -1014,21 +1014,41 @@
 %09public 
-Objec
+@NonNull ExternalApiResul
 t invoke
@@ -1187,19 +1187,67 @@
 return n
-ull
+ew ExternalApiResult(ActionResult.SUCCESS_CONTINUE)
 ;%0A%09%09%7D%0A%09%7D

Use the more generic IMethodInvoker interface instead of ISimpleMethodInvoker