@Override public void validateInstalatorData(VM vm, String token) throws InvalidInstallProductRequestException, NodeExecutionException { if (isSdcClientInstalled()) { if (!vm.canWorkWithChef()) { sdcClientUtils.checkIfSdcNodeIsReady(vm.getIp()); sdcClientUtils.setNodeCommands(vm); vm = ip2vm.getVm(vm.getIp(), vm.getFqn(), vm.getOsType()); // Configure the node with the corresponding node commands } } else { if (!vm.canWorkWithInstallatorServer()) { String message = "The VM does not include the node hostname required to Install " + "software"; throw new InvalidInstallProductRequestException(message); } isNodeRegistered(vm.getHostname(), token); } }