for (int i = 0; i < servers.length; i++) {
final ApplicationRef ref = servers[i].getApplicationRefByRef(referenceName);
if (ref != null) {
//This indicates that the cluster is in an inconsistent state. Some of the
//instances in the cluster have the ref and some do not.
throw new ConfigException(_strMgr.getString("clusterApplicationRefInconsistency",
referenceName, cluster.getName(), servers[i].getName()));
}
addApplicationReferenceToServer(servers[i], enabled, virtualServers,
referenceName);
}