public static com.liferay.portlet.mobiledevicerules.model.MDRActionSoap addAction(
      long ruleGroupInstanceId,
      java.lang.String[] nameMapLanguageIds,
      java.lang.String[] nameMapValues,
      java.lang.String[] descriptionMapLanguageIds,
      java.lang.String[] descriptionMapValues,
      java.lang.String type,
      java.lang.String typeSettings,
      com.liferay.portal.service.ServiceContext serviceContext)
      throws RemoteException {
    try {
      Map<Locale, String> nameMap =
          LocalizationUtil.getLocalizationMap(nameMapLanguageIds, nameMapValues);
      Map<Locale, String> descriptionMap =
          LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds, descriptionMapValues);

      com.liferay.portlet.mobiledevicerules.model.MDRAction returnValue =
          MDRActionServiceUtil.addAction(
              ruleGroupInstanceId, nameMap, descriptionMap, type, typeSettings, serviceContext);

      return com.liferay.portlet.mobiledevicerules.model.MDRActionSoap.toSoapModel(returnValue);
    } catch (Exception e) {
      _log.error(e, e);

      throw new RemoteException(e.getMessage());
    }
  }
  public static com.liferay.portlet.mobiledevicerules.model.MDRActionSoap fetchAction(long actionId)
      throws RemoteException {
    try {
      com.liferay.portlet.mobiledevicerules.model.MDRAction returnValue =
          MDRActionServiceUtil.fetchAction(actionId);

      return com.liferay.portlet.mobiledevicerules.model.MDRActionSoap.toSoapModel(returnValue);
    } catch (Exception e) {
      _log.error(e, e);

      throw new RemoteException(e.getMessage());
    }
  }