Add getBundleClass and singleton methods.