Fix for Spring resources and offline execution.