By doing this in this order, #register returns nil. It was one of the reasons I recommended putting it in the other method tap. At the very least, maybe add_resource_descriptor_to_raw_profile_registry should return its arg if you prefer to write it this way.