protected function loadJoins($currentFile, &$config, $data)
    {
        if (empty($config['joins']) || !is_array($config['joins'])) {
            $config['joins'] = array();

            return $this;
        }

        foreach ($config['joins'] as $joinName => &$joinConfig) {

            $filename = $currentFile;
            if (isset($joinConfig['file']) && 'this' !== $joinConfig['file']) {
                $filename = str_replace('EKA_ROOT', EKA_ROOT, $joinConfig['file']);
                $yaml     = new Yaml();
                $data     = $yaml->load($filename);
            }

            $joinConfig['class'] = $this->findConfigs($filename, $data, $joinName);
        }

        return $this;
    }