* @return If this node should install initial modules.
*/
public boolean shouldInstallModules() throws Exception {
final Boolean[] result = new Boolean[1];
result[0] = true;
new HibernateTxFragment(true, true) {
protected void txFragment(Session session) throws Exception {
List<ClusterNode> installingModulesNodes = getNodeByStatus(ClusterNode.ClusterNodeStatus.INSTALLING_MODULES);
if (installingModulesNodes != null && !installingModulesNodes.isEmpty()) {
if (installingModulesNodes.size() > 1) {
log.warn("More than one cluster node status is INSTALLING_MODULES. This situation can be produced due to a failured previous installation.");