Submit client = context.getParentResourceComponent().getBytemanClient();
List<String> rules = context.getParentResourceComponent().getRules();
if (rules != null && !rules.isEmpty()) {
for (String rule : rules) {
String ruleName = client.determineRuleName(rule);
details.add(new DiscoveredResourceDetails(context.getResourceType(), ruleName, ruleName, "unversioned",
"A rule defined in a Byteman script", null, null));
}
}