Begin refactoring of RessourceService.on_message