public static com.liferay.portlet.announcements.model.AnnouncementsEntrySoap addEntry(
      long plid,
      long classNameId,
      long classPK,
      java.lang.String title,
      java.lang.String content,
      java.lang.String url,
      java.lang.String type,
      int displayDateMonth,
      int displayDateDay,
      int displayDateYear,
      int displayDateHour,
      int displayDateMinute,
      int expirationDateMonth,
      int expirationDateDay,
      int expirationDateYear,
      int expirationDateHour,
      int expirationDateMinute,
      int priority,
      boolean alert)
      throws RemoteException {
    try {
      com.liferay.portlet.announcements.model.AnnouncementsEntry returnValue =
          AnnouncementsEntryServiceUtil.addEntry(
              plid,
              classNameId,
              classPK,
              title,
              content,
              url,
              type,
              displayDateMonth,
              displayDateDay,
              displayDateYear,
              displayDateHour,
              displayDateMinute,
              expirationDateMonth,
              expirationDateDay,
              expirationDateYear,
              expirationDateHour,
              expirationDateMinute,
              priority,
              alert);

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

      throw new RemoteException(e.getMessage());
    }
  }
  public static com.liferay.portlet.announcements.model.AnnouncementsEntrySoap getEntry(
      long entryId) throws RemoteException {
    try {
      com.liferay.portlet.announcements.model.AnnouncementsEntry returnValue =
          AnnouncementsEntryServiceUtil.getEntry(entryId);

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

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