if(taskModel instanceof AssetModel)
if(taskModel instanceof AssetModel) {
  private JPopupMenu getPopup(Node selectedNode, String unitName, String unitDBUID)  {    JPopupMenu carrierPopup = new JPopupMenu();    //This is needed to prevent refresh problem because this thing uses legacy    //awt stuff...    carrierPopup.setLightWeightPopupEnabled(false);    try{      if(selectedNode != null){	if(taskModel instanceof AssetModel)	  fillAssetPopup(carrierPopup, selectedNode, unitName,unitDBUID);	else	  fillUnitPopup(carrierPopup, selectedNode, unitName, unitDBUID);      }    }catch ( Exception e ) {      handleException(e);    }    return carrierPopup;  }