if (nodeController != null) {
// get instances that currently reside in repository
HashMap hmInstances=getInstancesAndStatus();
Iterator serverIt=hmInstances.keySet().iterator();
String instanceName=null;
Status instanceStatus=null;
ArrayList runningInstances = new ArrayList();
//Get a list of the running server instances
while(serverIt.hasNext()) {
// get instance name of server
instanceName=(String)serverIt.next();
instanceStatus=(Status)hmInstances.get(instanceName);
if (bDebug) System.out.println("Shutdown processing, " +
"seeing if need to shutdown - " + instanceName +
" with status " + instanceStatus);
if (instanceStatus != null &&
instanceStatus.getStatusCode() ==
Status.kInstanceRunningCode) {
// stop instance
if (bDebug) System.out.println("Shutdown processing, "
+ "shutting down - " + instanceName);
getLogger().log(Level.FINE,