@Override
	public void restartMachine(IMachine machine) throws InvalidObjectException, ConnectorException
	{
		try
		{
			CloudStackClient client = ClientLocator.getInstance().getClient(machine.getComputeCenter().getProperties(),
					controllerServices);

			client.rebootVirtualMachine(machine.getName());
		}
		catch (Exception e)
		{
			throw new ConnectorException("Error Rebooting " + machine.getComputeCenter().getType().getName()
					+ " Instance Id:" + machine.getName() + ". Error:" + e.getMessage(), e);
		}
	}