add literal handling to java export and strip leading spaces from java
imports