docs: @Override
  	public CommerceUserSegmentCriterion[] findByCommerceUserSegmentEntryId_PrevAndNext(
  		long commerceUserSegmentCriterionId, long commerceUserSegmentEntryId,
  		OrderByComparator<CommerceUserSegmentCriterion> orderByComparator)
  		throws NoSuchUserSegmentCriterionException {
  		CommerceUserSegmentCriterion commerceUserSegmentCriterion = findByPrimaryKey(commerceUserSegmentCriterionId);
  
  		Session session = null;
  
  		try {
  			session = openSession();
  
  			CommerceUserSegmentCriterion[] array = new CommerceUserSegmentCriterionImpl[3];
  
  			array[0] = getByCommerceUserSegmentEntryId_PrevAndNext(session,
  					commerceUserSegmentCriterion, commerceUserSegmentEntryId,
  					orderByComparator, true);
  
  			array[1] = commerceUserSegmentCriterion;
  
  			array[2] = getByCommerceUserSegmentEntryId_PrevAndNext(session,
  					commerceUserSegmentCriterion, commerceUserSegmentEntryId,
  					orderByComparator, false);
  
  			return array;
  		}
  		catch (Exception e) {
  			throw processException(e);
  		}
  		finally {
  			closeSession(session);
  		}
  	}