Started to support Java templates. Not really working yet.