if (method != null) {
return method.invoke(serverImpl, params);
}
else {
throw new CommonException(
"Error while performing method " + methodName + "; method not found.");
}
} catch (Exception e) {
throw new CommonException(
"Error while performing method " + methodName, e);
}
}