int code = JSExtensionReturnValue.SUCCESS;
JSONObject data = new JSONObject();
JSONObject returnValue = null;
if( !SUPPORTED_METHODS.contains( method ) ) {
throw new WidgetException("Undefined method: " + method);
}
try {
if( method.equals( FUNCTION_HAS_PERMISSION ) ) {
String module = (String) args[ 0 ];