Migrate Java code in tex to lstinputlisting