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