Augeas augeas = null;
try {
augeas = serverComponent.getAugeas();
if (augeas!=null) {
List<String> matches = augeas.match("/files/etc/samba/smb.conf/target[. != 'global']");
for (String match : matches) {
String name = augeas.get(match);
Configuration pluginConfig = discoveryContext.getDefaultPluginConfiguration();
pluginConfig.put(new PropertySimple("targetName", name));
DiscoveredResourceDetails detail = new DiscoveredResourceDetails(discoveryContext.getResourceType(),