docs: @Override
  	public CPOptionValue fetchByC_K(long CPOptionId, String key,
  		boolean retrieveFromCache) {
  		Object[] finderArgs = new Object[] { CPOptionId, key };
  
  		Object result = null;
  
  		if (retrieveFromCache) {
  			result = finderCache.getResult(FINDER_PATH_FETCH_BY_C_K,
  					finderArgs, this);
  		}
  
  		if (result instanceof CPOptionValue) {
  			CPOptionValue cpOptionValue = (CPOptionValue)result;
  
  			if ((CPOptionId != cpOptionValue.getCPOptionId()) ||
  					!Objects.equals(key, cpOptionValue.getKey())) {
  				result = null;
  			}
  		}
  
  		if (result == null) {
  			StringBundler query = new StringBundler(4);
  
  			query.append(_SQL_SELECT_CPOPTIONVALUE_WHERE);
  
  			query.append(_FINDER_COLUMN_C_K_CPOPTIONID_2);
  
  			boolean bindKey = false;
  
  			if (key == null) {
  				query.append(_FINDER_COLUMN_C_K_KEY_1);
  			}
  			else if (key.equals("")) {
  				query.append(_FINDER_COLUMN_C_K_KEY_3);
  			}
  			else {
  				bindKey = true;
  
  				query.append(_FINDER_COLUMN_C_K_KEY_2);
  			}
  
  			String sql = query.toString();
  
  			Session session = null;
  
  			try {
  				session = openSession();
  
  				Query q = session.createQuery(sql);
  
  				QueryPos qPos = QueryPos.getInstance(q);
  
  				qPos.add(CPOptionId);
  
  				if (bindKey) {
  					qPos.add(key);
  				}
  
  				List<CPOptionValue> list = q.list();
  
  				if (list.isEmpty()) {
  					finderCache.putResult(FINDER_PATH_FETCH_BY_C_K, finderArgs,
  						list);
  				}
  				else {
  					CPOptionValue cpOptionValue = list.get(0);
  
  					result = cpOptionValue;
  
  					cacheResult(cpOptionValue);
  				}
  			}
  			catch (Exception e) {
  				finderCache.removeResult(FINDER_PATH_FETCH_BY_C_K, finderArgs);
  
  				throw processException(e);
  			}
  			finally {
  				closeSession(session);
  			}
  		}
  
  		if (result instanceof List<?>) {
  			return null;
  		}
  		else {
  			return (CPOptionValue)result;
  		}
  	}