List<Property> model = response.get(RESULT).asPropertyList();
List<DiscoveryGroup> groups = new ArrayList<DiscoveryGroup>();
for(Property prop : model)
{
ModelNode node = prop.getValue();
DiscoveryGroup entity = discGroupAdapter.fromDMR(node);
entity.setName(prop.getName());
groups.add(entity);
}
getView().setDiscoveryGroups(groups);