Change addExtension method in ConfigPackage