rule = new RolesRequiredRule(new HashSet<Object>(), context.getBus());
}
if (!commandPoints.isEmpty()) {
if (local) {
context.getBus().subscribeLocal(svcName, new CommandBindingsCallback(commandPoints, svc, context.getBus()));
}
else {
context.getBus().subscribe(svcName, new CommandBindingsCallback(commandPoints, svc, context.getBus()));
}
}
if (rule != null) {
context.getBus().addRule(svcName, rule);