for (int i = 0; i < servers.length; i++) {
final ResourceRef ref = servers[i].getResourceRefByRef(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("clusterResourceRefInconsistency",
referenceName, cluster.getName(), servers[i].getName()));
}
addResourceReferenceToServer(servers[i], enabled, referenceName);
}
}