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