final Pattern pattern = Pattern.compile(Util.wildcardToJavaRegex(deploymentName == null ? "*" : deploymentName));
for (Property p : list) {
final ModelNode node = p.getValue();
final String name = node.get(Util.NAME).asString();
if(pattern.matcher(name).matches()) {
table.addLine(new String[]{name, node.get(Util.RUNTIME_NAME).asString(),
node.get(Util.PERSISTENT).asString(), node.get(Util.ENABLED).asString(),
node.get(Util.STATUS).asString()});
}
}
}