protected function _getStackEntry($file_path, $priority = null, $is_minified = null)
    {
        $stack_entry = $this->_default_stack_entry;

        if (is_array($file_path)) {
            $stack_entry = array_merge($stack_entry, $file_path);
            if (isset($stack_entry['is_minified'])) {
                $stack_entry['minified'] = $stack_entry['is_minified'];
                unset($stack_entry['is_minified']);
            }
        } else {
            $stack_entry['file'] = $file_path;
        }
        
        if (!is_null($priority)) {
            $stack_entry['priority'] = $priority;
        }
        
        if (!is_null($is_minified)) {
            $stack_entry['minified'] = $is_minified;
        }

        if (\AssetsManager\Loader::isUrl($stack_entry['file'])) {
            $stack_entry['path'] = $stack_entry['file'];
            return $stack_entry;
        }

        $_fp = $this->__template->findAsset($stack_entry['file']);
        if ($_fp) {
            $stack_entry['path'] = $_fp;
            return $stack_entry;
        } else {
            throw new TemplateEngineException(
                sprintf('Javascript file "%s" not found!', $file_path)
            );
        }
    }