}
else
{
ModelNode payload = response.get(RESULT).asObject();
Modcluster modcluster = adapter.fromDMR(payload);
if(payload.hasDefined("ssl") && payload.get("ssl").hasDefined("configuration"))
{
SSLConfig ssl = sslAdapter.fromDMR(payload.get("ssl").get("configuration").asObject());
modcluster.setSSLConfig(ssl);
}
else
{
// provide an empty entity
AutoBean<SSLConfig> autoBean = factory.SSLConfig();
autoBean.setTag("state", "transient");
modcluster.setSSLConfig(autoBean.as());
}
getView().updateFrom(modcluster);
}