public void parse(DeploymentUnit unit, Object dataObject) throws DeploymentUnitProcessingException {
Map<String, Map<String, Object>> data = (Map<String, Map<String, Object>>) dataObject;
for (String queueName : data.keySet()) {
QueueMetaData queueMetaData = new QueueMetaData(queueName);
Map<String, Object> queueOptions = data.get(queueName);
// Default value for durability
queueMetaData.setDurable(true);
if (queueOptions != null) {
if (queueOptions.containsKey("durable")) {
queueMetaData.setDurable((Boolean) queueOptions.get("durable"));
}
if (queueOptions.containsKey("exported")) {
queueMetaData.setExported((Boolean) queueOptions.get("exported"));
}
parseRemote(queueMetaData, queueOptions.get("remote"));
}