Fixed a bug in getBundleResource() where it was only searching the local bundle and not the imports of the bundle. Also removed some unneeded code.