Optimize imports
Reinitialize environment right after convertation from java