use JavaPlatform as wrapped class
clean up