I have the following org file:
```
#+TITLE: Some title
#+OPTIONS: H:2
#+latex_class: beamer


* Section 1
** Frame 1

* Section 2
** Frame 2
```
After org-exporting I obtain the .tex, which includes 
```
% beginning of the document
\begin{document}

\maketitle
\begin{frame}{Outline}
\tableofcontents
\end{frame}
% rest of the document  ...
```

However, I want to apply some user-defined latex commands before and after outline frame to get something like:
```
% beginning of the document
\begin{document}

\maketitle
\doSomethingBeforeOutline
\begin{frame}{Outline}
\tableofcontents
\end{frame}
\doSomethingAfterOutline
% rest of the document  ...
```

Keep in mind that user-defined commands should be applied only for an outline frame and not for others. 
How should I modify beamer exporting process to get above content in tex file?