code: @Override
  	public CommerceNotificationQueueEntry[] findByGroupId_PrevAndNext(
  		long commerceNotificationQueueEntryId, long groupId,
  		OrderByComparator<CommerceNotificationQueueEntry> orderByComparator)
  		throws NoSuchNotificationQueueEntryException {
  		CommerceNotificationQueueEntry commerceNotificationQueueEntry = findByPrimaryKey(commerceNotificationQueueEntryId);
  
  		Session session = null;
  
  		try {
  			session = openSession();
  
  			CommerceNotificationQueueEntry[] array = new CommerceNotificationQueueEntryImpl[3];
  
  			array[0] = getByGroupId_PrevAndNext(session,
  					commerceNotificationQueueEntry, groupId, orderByComparator,
  					true);
  
  			array[1] = commerceNotificationQueueEntry;
  
  			array[2] = getByGroupId_PrevAndNext(session,
  					commerceNotificationQueueEntry, groupId, orderByComparator,
  					false);
  
  			return array;
  		}
  		catch (Exception e) {
  			throw processException(e);
  		}
  		finally {
  			closeSession(session);
  		}
  	}
docs: Returns the commerce notification queue entries before and after the current commerce notification queue entry in the ordered set where groupId = &#63;.
  
  @param commerceNotificationQueueEntryId the primary key of the current commerce notification queue 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 notification queue entry
  @throws NoSuchNotificationQueueEntryException if a commerce notification queue entry with the primary key could not be found