continue;
}
PeerEurekaNode.ReplicationInstance instance = new PeerEurekaNode.ReplicationInstance();
instance.setAppName(task.getAppName());
instance.setId(task.getId());
InstanceInfo instanceInfo = task.getInstanceInfo();
if (instanceInfo != null) {
String overriddenStatus = (task
.getOverriddenStatus() == null ? null
: task.getOverriddenStatus().name());
instance.setOverriddenStatus(overriddenStatus);
instance.setLastDirtyTimestamp(instanceInfo
.getLastDirtyTimestamp());
if (task.shouldReplicateInstanceInfo()) {
instance.setInstanceInfo(instanceInfo);
}
String instanceStatus = instanceInfo
.getStatus() == null ? null
: instanceInfo.getStatus().name();
instance.setStatus(instanceStatus);
}
instance.setAction(task.getAction());
list.addReplicationInstance(instance);
}