Some code refactoring for the JavaCommandLineCompiler class