@Inject
Servers servers;
public void postConstruct() {
final NodeAgents nodeAgents = domain.getNodeAgents();
if (nodeAgents == null) {
// check if already a 3.X server
if (domain.getNodes() == null) {
createDefaultNodeList();
}
return;
}
final List<NodeAgent> agList= nodeAgents.getNodeAgent();
if (agList.size() == 0) {
// assume nodes element does not exist in this case
createDefaultNodeList();
return;
}