- // Get a handle for `createBookmarkFolderListener` from `context`.
- try {
- createBookmarkFolderListener = (CreateBookmarkFolderListener) context;
- } catch(ClassCastException exception) {
- throw new ClassCastException(context.toString() + " must implement CreateBookmarkFolderListener.");
- }
+ // Get a handle for `createBookmarkFolderListener` from the launching context.
+ createBookmarkFolderListener = (CreateBookmarkFolderListener) context;