}
int stateValue = kernel.getGBeanState(name);
if (stateValue != State.RUNNING_INDEX) {
GBeanData data = kernel.getGBeanData(name);
State state = State.fromInt(stateValue);
StringBuffer buf = new StringBuffer();
buf.append("(").append(state.getName());
// Since it's not unusual for a failure to be caused by a port binding failure
// we'll see if there's a likely looking port attribute in the config data
// for the GBean. It's a long shot, but hey.
if (data != null && data.getAttributes() != null) {
Map map = data.getAttributes();