class AutonomiccsSystemVmDeploymentService implements InitializingBean {

    public AutonomiccsSystemVm deploySystemVmWithJava(Long hostId, SystemVmType systemVmType) {
        AutonomiccsSystemVm vmInstance = deploySystemVm(hostId, systemVmType);
        String managementIp = vmInstance.getManagementIpAddress();
        sshUtils.executeCommandOnHostViaSsh(managementIp, "aptitude update");
        sshUtils.executeCommandOnHostViaSsh(managementIp, commandToInstallOpenJDK7);
        return vmInstance;
    }

}