Property property = item.asProperty();
ModelNode ep = property.getValue().asObject();
String name = property.getName();
try {
JMSEndpoint model = factory.jmsEndpoint().as();
model.setName(name);
model.setJndiName(ep.get("entries").asList().get(0).asString());// TODO: fragile crap
endpoints.add(model);
} catch (IllegalArgumentException e) {
Log.error("Failed to parse data source representation", e);