116117118119120121122123124125126
if (peer.getId() == instance.getId()) { continue; } // TODO: Return a typed object InstanceState state = peer.getInstanceState(); if (state != null) { switch (state) { case TERMINATED: case STOPPED: case STOPPING: