Revert "Use managed JavaPlatform instances."

No need for this yet.

This reverts commit 7c523bbc506387f15c3919764dc45adcb60f44c8.
Doesn't need to be inside loop.
imports.