@Override
	public CPInstance findByPrimaryKey(Serializable primaryKey)
		throws NoSuchCPInstanceException {
		CPInstance cpInstance = fetchByPrimaryKey(primaryKey);

		if (cpInstance == null) {
			if (_log.isDebugEnabled()) {
				_log.debug(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);
			}

			throw new NoSuchCPInstanceException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +
				primaryKey);
		}

		return cpInstance;
	}
@ Override public CPInstance findByPrimaryKey ( Serializable primaryKey ) throws NoSuchCPInstanceException { CPInstance cpInstance = fetchByPrimaryKey ( primaryKey ) ; if ( cpInstance == null ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } throw new NoSuchCPInstanceException ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } return cpInstance ; }
Returns the cp instance with the primary key or throws a {@link com.liferay.portal.kernel.exception.NoSuchModelException} if it could not be found.

@param primaryKey the primary key of the cp instance
@return the cp instance
@throws NoSuchCPInstanceException if a cp instance with the primary key could not be found