if (clusterServer != null)
throw new ConfigException(L().l("dynamic-server '{0}' must not have a static configuration configured in the resin.xml.",
_serverId));
Cluster cluster = findCluster(_dynCluster);
if (cluster == null) {
throw new ConfigException(L().l("dynamic-server cluster '{0}' does not exist. Dynamic servers must be added to an existing cluster.",
_dynamicServer.getCluster()));
}
if (! cluster.isDynamicServerEnable()) {
throw new ConfigException(L().l("cluster '{0}' does not allow dynamic servers. Add a <dynamic-server-enable/> tag to the <cluster> to enable it.",
cluster.getId()));
}
_dynPod = cluster.getPodList()[0];
if (_dynPod == null)
throw new NullPointerException();
}