try {
Messages.NewMachine newMachine = Messages.NewMachine.parseFrom(message);
VirtualMachine machine = new VirtualMachine(newMachine.getId(), newMachine.getDisplayName(), true, "");
ProfileListener profileListener = listener.onNewMachine(machine);
if (profileListener != null) {
DataConsumer consumer = conductor.pipeData(machine, profileListener);
machines.put(connection, consumer);
}
} catch (InvalidProtocolBufferException e) {
logger.error(e.getMessage(), e);
}