docs: @Override
  	public CommerceDiscountUserSegmentRel[] findByCommerceDiscountId_PrevAndNext(
  		long commerceDiscountUserSegmentRelId, long commerceDiscountId,
  		OrderByComparator<CommerceDiscountUserSegmentRel> orderByComparator)
  		throws NoSuchDiscountUserSegmentRelException {
  		CommerceDiscountUserSegmentRel commerceDiscountUserSegmentRel = findByPrimaryKey(commerceDiscountUserSegmentRelId);
  
  		Session session = null;
  
  		try {
  			session = openSession();
  
  			CommerceDiscountUserSegmentRel[] array = new CommerceDiscountUserSegmentRelImpl[3];
  
  			array[0] = getByCommerceDiscountId_PrevAndNext(session,
  					commerceDiscountUserSegmentRel, commerceDiscountId,
  					orderByComparator, true);
  
  			array[1] = commerceDiscountUserSegmentRel;
  
  			array[2] = getByCommerceDiscountId_PrevAndNext(session,
  					commerceDiscountUserSegmentRel, commerceDiscountId,
  					orderByComparator, false);
  
  			return array;
  		}
  		catch (Exception e) {
  			throw processException(e);
  		}
  		finally {
  			closeSession(session);
  		}
  	}