* Returns Import / Modify background image menu item.
*/
private JMenuItem createImportModifyBackgroundImageMenuItem(final Home home,
final boolean popup) {
ActionMap actionMap = getActionMap();
Action importBackgroundImageAction = actionMap.get(ActionType.IMPORT_BACKGROUND_IMAGE);
Action modifyBackgroundImageAction = actionMap.get(ActionType.MODIFY_BACKGROUND_IMAGE);
if (importBackgroundImageAction != null
&& importBackgroundImageAction.getValue(Action.NAME) != null
&& modifyBackgroundImageAction.getValue(Action.NAME) != null) {
final JMenuItem importModifyBackgroundImageMenuItem = new JMenuItem(
createImportModifyBackgroundImageAction(home, popup));
// Add a listener to home on backgroundImage property change to
// switch action according to backgroundImage change
home.addPropertyChangeListener(Home.Property.BACKGROUND_IMAGE,