question: public boolean isServiceSelected ( ) { return tabbedPane != null && tabbedPane . getSelectedComponent ( ) != null && tabbedPane . getSelectedComponent ( ) instanceof ServicePanel ; }
target:  is the currently selected panel a service panel?