protected void executeMethodInvocationDialog(final Class cls,
final IRemoteService remoteService) {
final MethodInvocationDialog mid = new MethodInvocationDialog(
(Shell) null, cls);
if (mid.open() == Window.OK) {
final int timeout = (mid.getTimeout() > 0) ? mid.getTimeout()
: 30000;
final String methodName = mid.getMethod().getName();
final Object[] methodArgs = mid.getMethodArguments();
final IRemoteCall remoteCall = new IRemoteCall() {