protected void deleteOrganizations(ActionRequest req) throws Exception {
    long[] deleteOrganizationIds =
        StringUtil.split(ParamUtil.getString(req, "deleteOrganizationIds"), 0L);

    for (int i = 0; i < deleteOrganizationIds.length; i++) {
      OrganizationServiceUtil.deleteOrganization(deleteOrganizationIds[i]);
    }
  }
  protected void deleteOrganizations(ActionRequest actionRequest) throws Exception {

    long[] deleteOrganizationIds =
        StringUtil.split(ParamUtil.getString(actionRequest, "deleteOrganizationIds"), 0L);

    for (long deleteOrganizationId : deleteOrganizationIds) {
      OrganizationServiceUtil.deleteOrganization(deleteOrganizationId);
    }
  }