public static com.liferay.portlet.social.model.SocialActivitySettingSoap[] getActivitySettings(
      long groupId) throws RemoteException {
    try {
      java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> returnValue =
          SocialActivitySettingServiceUtil.getActivitySettings(groupId);

      return com.liferay.portlet.social.model.SocialActivitySettingSoap.toSoapModels(returnValue);
    } catch (Exception e) {
      _log.error(e, e);

      throw new RemoteException(e.getMessage());
    }
  }
  /**
   * Converts the soap model instance into a normal model instance.
   *
   * @param soapModel the soap model instance to convert
   * @return the normal model instance
   */
  public static SocialActivitySetting toModel(SocialActivitySettingSoap soapModel) {
    if (soapModel == null) {
      return null;
    }

    SocialActivitySetting model = new SocialActivitySettingImpl();

    model.setActivitySettingId(soapModel.getActivitySettingId());
    model.setGroupId(soapModel.getGroupId());
    model.setCompanyId(soapModel.getCompanyId());
    model.setClassNameId(soapModel.getClassNameId());
    model.setActivityType(soapModel.getActivityType());
    model.setName(soapModel.getName());
    model.setValue(soapModel.getValue());

    return model;
  }