Fix some problems with the implementation of the addPackagedResource for the LocalCatalogue