@Override
	public CPInstance fetchByG_ST_Last(long groupId, int status,
		OrderByComparator<CPInstance> orderByComparator) {
		int count = countByG_ST(groupId, status);

		if (count == 0) {
			return null;
		}

		List<CPInstance> list = findByG_ST(groupId, status, count - 1, count,
				orderByComparator);

		if (!list.isEmpty()) {
			return list.get(0);
		}

		return null;
	}
@ Override public CPInstance fetchByG_ST_Last ( long groupId , int status , OrderByComparator < CPInstance > orderByComparator ) { int count = countByG_ST ( groupId , status ) ; if ( count == 0 ) { return null ; } List < CPInstance > list = findByG_ST ( groupId , status , count - 1 , count , orderByComparator ) ; if ( ! list . isEmpty ( ) ) { return list . get ( 0 ) ; } return null ; }
Returns the last cp instance in the ordered set where groupId = &#63; and status = &#63;.

@param groupId the group ID
@param status the status
@param orderByComparator the comparator to order the set by (optionally <code>null</code>)
@return the last matching cp instance, or <code>null</code> if a matching cp instance could not be found