@Override
public Machine apply(Instance instance) {
Preconditions.checkArgument(instance != null, "received null instance");
String id = instance.getInstanceId();
MachineState state = new InstanceStateToMachineState().apply(instance
.getState());
DateTime launchtime = new DateTime(instance.getLaunchTime(),
DateTimeZone.UTC);
List<String> publicIps = Lists.newArrayList();
List<String> privateIps = Lists.newArrayList();