Try catch for external JS
RAZ-1904: API: All set actions within the API will trigger workflows
Refactored how the ResourceManager is being called
Wrap lucene updates with a lock