code: @Override
  	public CommerceUserSegmentEntry[] findByGroupId_PrevAndNext(
  		long commerceUserSegmentEntryId, long groupId,
  		OrderByComparator<CommerceUserSegmentEntry> orderByComparator)
  		throws NoSuchUserSegmentEntryException {
  		CommerceUserSegmentEntry commerceUserSegmentEntry = findByPrimaryKey(commerceUserSegmentEntryId);
  
  		Session session = null;
  
  		try {
  			session = openSession();
  
  			CommerceUserSegmentEntry[] array = new CommerceUserSegmentEntryImpl[3];
  
  			array[0] = getByGroupId_PrevAndNext(session,
  					commerceUserSegmentEntry, groupId, orderByComparator, true);
  
  			array[1] = commerceUserSegmentEntry;
  
  			array[2] = getByGroupId_PrevAndNext(session,
  					commerceUserSegmentEntry, groupId, orderByComparator, false);
  
  			return array;
  		}
  		catch (Exception e) {
  			throw processException(e);
  		}
  		finally {
  			closeSession(session);
  		}
  	}
docs: Returns the commerce user segment entries before and after the current commerce user segment entry in the ordered set where groupId = &#63;.
  
  @param commerceUserSegmentEntryId the primary key of the current commerce user segment entry
  @param groupId the group ID
  @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
  @return the previous, current, and next commerce user segment entry
  @throws NoSuchUserSegmentEntryException if a commerce user segment entry with the primary key could not be found