@Override
public void execute(final Control<FunctionContext> control) {
boolean runningServer = false;
final List<HostInfo> hosts = control.getContext().get(TopologyFunctions.HOSTS_KEY);
for (Iterator<HostInfo> hIterator = hosts.iterator(); hIterator.hasNext() && !runningServer; ) {
HostInfo host = hIterator.next();
List<ServerInstance> serverInstances = host.getServerInstances();
for (Iterator<ServerInstance> siIterator = serverInstances.iterator();
siIterator.hasNext() && !runningServer; ) {
ServerInstance serverInstance = siIterator.next();
runningServer = serverInstance.isRunning();
}