@Override
  public com.liferay.portal.model.PersistedModel getPersistedModel(
      java.io.Serializable primaryKeyObj)
      throws com.liferay.portal.kernel.exception.PortalException {
    Object returnObj = null;

    try {
      returnObj =
          _invokableLocalService.invokeMethod(
              _methodName16,
              _methodParameterTypes16,
              new Object[] {ClpSerializer.translateInput(primaryKeyObj)});
    } catch (Throwable t) {
      t = ClpSerializer.translateThrowable(t);

      if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
        throw (com.liferay.portal.kernel.exception.PortalException) t;
      }

      if (t instanceof RuntimeException) {
        throw (RuntimeException) t;
      } else {
        throw new RuntimeException(t.getClass().getName() + " is not a valid exception");
      }
    }

    return (com.liferay.portal.model.PersistedModel) ClpSerializer.translateOutput(returnObj);
  }
  @Override
  public com.liferay.pushnotifications.model.PushNotificationsDevice getPushNotificationsDevice(
      long pushNotificationsDeviceId) throws com.liferay.portal.kernel.exception.PortalException {
    Object returnObj = null;

    try {
      returnObj =
          _invokableLocalService.invokeMethod(
              _methodName17, _methodParameterTypes17, new Object[] {pushNotificationsDeviceId});
    } catch (Throwable t) {
      t = ClpSerializer.translateThrowable(t);

      if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
        throw (com.liferay.portal.kernel.exception.PortalException) t;
      }

      if (t instanceof RuntimeException) {
        throw (RuntimeException) t;
      } else {
        throw new RuntimeException(t.getClass().getName() + " is not a valid exception");
      }
    }

    return (com.liferay.pushnotifications.model.PushNotificationsDevice)
        ClpSerializer.translateOutput(returnObj);
  }
  @Override
  public long dynamicQueryCount(
      com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
      com.liferay.portal.kernel.dao.orm.Projection projection) {
    Object returnObj = null;

    try {
      returnObj =
          _invokableLocalService.invokeMethod(
              _methodName12,
              _methodParameterTypes12,
              new Object[] {
                ClpSerializer.translateInput(dynamicQuery), ClpSerializer.translateInput(projection)
              });
    } catch (Throwable t) {
      t = ClpSerializer.translateThrowable(t);

      if (t instanceof RuntimeException) {
        throw (RuntimeException) t;
      } else {
        throw new RuntimeException(t.getClass().getName() + " is not a valid exception");
      }
    }

    return ((Long) returnObj).longValue();
  }
  @Override
  public <T> java.util.List<T> dynamicQuery(
      com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
      int start,
      int end,
      com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
    Object returnObj = null;

    try {
      returnObj =
          _invokableLocalService.invokeMethod(
              _methodName10,
              _methodParameterTypes10,
              new Object[] {
                ClpSerializer.translateInput(dynamicQuery),
                start,
                end,
                ClpSerializer.translateInput(orderByComparator)
              });
    } catch (Throwable t) {
      t = ClpSerializer.translateThrowable(t);

      if (t instanceof RuntimeException) {
        throw (RuntimeException) t;
      } else {
        throw new RuntimeException(t.getClass().getName() + " is not a valid exception");
      }
    }

    return (java.util.List<T>) ClpSerializer.translateOutput(returnObj);
  }
  @Override
  public com.liferay.pushnotifications.model.PushNotificationsDevice addPushNotificationsDevice(
      long userId, java.lang.String platform, java.lang.String token) {
    Object returnObj = null;

    try {
      returnObj =
          _invokableLocalService.invokeMethod(
              _methodName1,
              _methodParameterTypes1,
              new Object[] {
                userId, ClpSerializer.translateInput(platform), ClpSerializer.translateInput(token)
              });
    } catch (Throwable t) {
      t = ClpSerializer.translateThrowable(t);

      if (t instanceof RuntimeException) {
        throw (RuntimeException) t;
      } else {
        throw new RuntimeException(t.getClass().getName() + " is not a valid exception");
      }
    }

    return (com.liferay.pushnotifications.model.PushNotificationsDevice)
        ClpSerializer.translateOutput(returnObj);
  }
  @Override
  public void resetPushNotificationSenders() {
    try {
      _invokableLocalService.invokeMethod(_methodName21, _methodParameterTypes21, new Object[] {});
    } catch (Throwable t) {
      t = ClpSerializer.translateThrowable(t);

      if (t instanceof RuntimeException) {
        throw (RuntimeException) t;
      } else {
        throw new RuntimeException(t.getClass().getName() + " is not a valid exception");
      }
    }
  }
  @Override
  public void setBeanIdentifier(java.lang.String beanIdentifier) {
    try {
      _invokableLocalService.invokeMethod(
          _methodName24,
          _methodParameterTypes24,
          new Object[] {ClpSerializer.translateInput(beanIdentifier)});
    } catch (Throwable t) {
      t = ClpSerializer.translateThrowable(t);

      if (t instanceof RuntimeException) {
        throw (RuntimeException) t;
      } else {
        throw new RuntimeException(t.getClass().getName() + " is not a valid exception");
      }
    }
  }
  @Override
  public int getPushNotificationsDevicesCount() {
    Object returnObj = null;

    try {
      returnObj =
          _invokableLocalService.invokeMethod(
              _methodName19, _methodParameterTypes19, new Object[] {});
    } catch (Throwable t) {
      t = ClpSerializer.translateThrowable(t);

      if (t instanceof RuntimeException) {
        throw (RuntimeException) t;
      } else {
        throw new RuntimeException(t.getClass().getName() + " is not a valid exception");
      }
    }

    return ((Integer) returnObj).intValue();
  }
  @Override
  public java.lang.String getBeanIdentifier() {
    Object returnObj = null;

    try {
      returnObj =
          _invokableLocalService.invokeMethod(
              _methodName15, _methodParameterTypes15, new Object[] {});
    } catch (Throwable t) {
      t = ClpSerializer.translateThrowable(t);

      if (t instanceof RuntimeException) {
        throw (RuntimeException) t;
      } else {
        throw new RuntimeException(t.getClass().getName() + " is not a valid exception");
      }
    }

    return (java.lang.String) ClpSerializer.translateOutput(returnObj);
  }
  @Override
  public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
    Object returnObj = null;

    try {
      returnObj =
          _invokableLocalService.invokeMethod(
              _methodName14, _methodParameterTypes14, new Object[] {});
    } catch (Throwable t) {
      t = ClpSerializer.translateThrowable(t);

      if (t instanceof RuntimeException) {
        throw (RuntimeException) t;
      } else {
        throw new RuntimeException(t.getClass().getName() + " is not a valid exception");
      }
    }

    return (com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery)
        ClpSerializer.translateOutput(returnObj);
  }
  @Override
  public java.util.List<com.liferay.pushnotifications.model.PushNotificationsDevice>
      getPushNotificationsDevices(int start, int end) {
    Object returnObj = null;

    try {
      returnObj =
          _invokableLocalService.invokeMethod(
              _methodName18, _methodParameterTypes18, new Object[] {start, end});
    } catch (Throwable t) {
      t = ClpSerializer.translateThrowable(t);

      if (t instanceof RuntimeException) {
        throw (RuntimeException) t;
      } else {
        throw new RuntimeException(t.getClass().getName() + " is not a valid exception");
      }
    }

    return (java.util.List<com.liferay.pushnotifications.model.PushNotificationsDevice>)
        ClpSerializer.translateOutput(returnObj);
  }
  @Override
  public com.liferay.pushnotifications.model.PushNotificationsDevice updatePushNotificationsDevice(
      com.liferay.pushnotifications.model.PushNotificationsDevice pushNotificationsDevice) {
    Object returnObj = null;

    try {
      returnObj =
          _invokableLocalService.invokeMethod(
              _methodName25,
              _methodParameterTypes25,
              new Object[] {ClpSerializer.translateInput(pushNotificationsDevice)});
    } catch (Throwable t) {
      t = ClpSerializer.translateThrowable(t);

      if (t instanceof RuntimeException) {
        throw (RuntimeException) t;
      } else {
        throw new RuntimeException(t.getClass().getName() + " is not a valid exception");
      }
    }

    return (com.liferay.pushnotifications.model.PushNotificationsDevice)
        ClpSerializer.translateOutput(returnObj);
  }
  @Override
  public void sendPushNotification(
      long fromUserId, long toUserId, com.liferay.portal.kernel.json.JSONObject jsonObject)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      _invokableLocalService.invokeMethod(
          _methodName23,
          _methodParameterTypes23,
          new Object[] {fromUserId, toUserId, ClpSerializer.translateInput(jsonObject)});

    } catch (Throwable t) {
      t = ClpSerializer.translateThrowable(t);

      if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
        throw (com.liferay.portal.kernel.exception.PortalException) t;
      }

      if (t instanceof RuntimeException) {
        throw (RuntimeException) t;
      } else {
        throw new RuntimeException(t.getClass().getName() + " is not a valid exception");
      }
    }
  }