Console.error(Console.MESSAGES.unknown_error(), response.getFailureDescription());
}
else
{
ModelNode payload = response.get(RESULT).asObject();
JMXSubsystem jmxSubsystem = adapter.fromDMR(payload);
// TODO: https://issues.jboss.org/browse/AS7-3566
if(payload.hasDefined("remoting-connector"))
{
List<Property> connectorList = payload.get("remoting-connector").asPropertyList();
if(!connectorList.isEmpty())
{
Property item = connectorList.get(0);
ModelNode jmxConnector = item.getValue();
jmxSubsystem.setRegistryBinding(jmxConnector.get("registry-binding").asString());
jmxSubsystem.setServerBinding(jmxConnector.get("server-binding").asString());
}
}
getView().updateFrom(jmxSubsystem);
}