code: @Override
  	public CommerceSubscriptionEntry[] findBySubscriptionStatus_PrevAndNext(
  		long commerceSubscriptionEntryId, int subscriptionStatus,
  		OrderByComparator<CommerceSubscriptionEntry> orderByComparator)
  		throws NoSuchSubscriptionEntryException {
  		CommerceSubscriptionEntry commerceSubscriptionEntry = findByPrimaryKey(commerceSubscriptionEntryId);
  
  		Session session = null;
  
  		try {
  			session = openSession();
  
  			CommerceSubscriptionEntry[] array = new CommerceSubscriptionEntryImpl[3];
  
  			array[0] = getBySubscriptionStatus_PrevAndNext(session,
  					commerceSubscriptionEntry, subscriptionStatus,
  					orderByComparator, true);
  
  			array[1] = commerceSubscriptionEntry;
  
  			array[2] = getBySubscriptionStatus_PrevAndNext(session,
  					commerceSubscriptionEntry, subscriptionStatus,
  					orderByComparator, false);
  
  			return array;
  		}
  		catch (Exception e) {
  			throw processException(e);
  		}
  		finally {
  			closeSession(session);
  		}
  	}
docs: Returns the commerce subscription entries before and after the current commerce subscription entry in the ordered set where subscriptionStatus = &#63;.
  
  @param commerceSubscriptionEntryId the primary key of the current commerce subscription entry
  @param subscriptionStatus the subscription status
  @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
  @return the previous, current, and next commerce subscription entry
  @throws NoSuchSubscriptionEntryException if a commerce subscription entry with the primary key could not be found