if( resource == null ){
String path = Paths.path("security/role", name, fileConfig.getFileName());
resource = get(path);
}
RoleFileWatcher watcher = new RoleFileWatcher(resource, service, resource.lastmodified());
service.registerRoleLoadedListener(watcher);
watcher.start();
//register the watcher so we can kill it later
fileWatchers.add(watcher);
}
}