the  else  branch here is usually where we execute native plexxi actions  i e  actions that are implemented in the plexxi libraries  but the way the rest of the driver is written  that is hard to do right  they import different classes  affinitygroup  job  physicalport  plexxiswitch each of which has actions that could be executed  so the  else  branch here is not going to work  i would probably get the bug fixed first and then think about whether it is worth exposing all the native plexxi actions  so you could get away without the  else  branch here and leave a todo saying something like what i explained above 