if (svc == null) {
svc = createServiceInjector(loadClass, context, config, false);
}
RolesRequiredRule rule = null;
if (loadClass.isAnnotationPresent(RequireRoles.class)) {
rule = new RolesRequiredRule(loadClass.getAnnotation(RequireRoles.class).value(), context.getBus());
}
else if (loadClass.isAnnotationPresent(RequireAuthentication.class)) {
rule = new RolesRequiredRule(new HashSet<Object>(), context.getBus());
}
if (!commandPoints.isEmpty()) {
if (local) {
context.getBus().subscribeLocal(svcName, new CommandBindingsCallback(commandPoints, svc, context.getBus()));