I wasn't clear why we are checking for xblock.setMetadataEditor (when does the method not exist?.