protected function checkApiServiceFilterContext($apiServiceFilterContext = null, $aID = null)
    {
        if (is_null($apiServiceFilterContext)) {
            $resultApiServiceFilterContext = new \RGU\Dvoconnector\Domain\Filter\GenericFilterContext();
        } else {
            $resultApiServiceFilterContext = clone $apiServiceFilterContext;
        }

        if (is_null($resultApiServiceFilterContext->getInsideAssociationID()) && isset($aID)) {
            $resultApiServiceFilterContext->setInsideAssociationID($aID);
        }

        return $resultApiServiceFilterContext;
    }