@Override
public boolean start() {
for ( PluggableService service : _services ) {
for ( Class<?> clz : service.getCommands() ) {
APICommand command = clz.getAnnotation(APICommand.class);
for ( RoleType role : command.authorized() ) {
Set<String> commands = annotationRoleBasedApisMap.get(role);
if (!commands.contains(command.name()))
commands.add(command.name());
}
}