private function renderFile($typeIdentifier, $relPath)
    {
        if (tao_helpers_File::securityCheck($relPath, true)) {
            $folder = $this->getImplementationDirectory($typeIdentifier);
            $filename = $folder.$relPath;
            
            //@todo : find better way to to this
            //load amd module
            if (! file_exists($filename) && file_exists($filename.'.js')) {
                $filename = $filename.'.js';
            }
            tao_helpers_Http::returnFile($filename);
        } else {
            throw new common_exception_Error('invalid item preview file path');
        }
    }