if (State.RUNNING_INDEX != kernel.getGBeanState(gbeanName)) {
String stateReason = null;
if (kernel instanceof BasicKernel) {
stateReason = ((BasicKernel) kernel).getStateReason(gbeanName);
}
String name = gbeanName.toURI().getQuery();
if (stateReason != null) {
unstarted.add("The service " + name + " did not start because " + stateReason);
} else {
unstarted.add("The service " + name + " did not start for an unknown reason");
}