Improves methods around JavaSoftwareProcessSshDriver.installJava

Makes it much easier for subclasses to alter its behaviour, e.g. to that Java 7 must be installed.