public XmlRpcProtocolCommand[] getProtocolCommandList(int protocolIdx) { XmlRpcProtocolCommand[] cmds = null; try { if (IsConnectionEnabled) { LogFile.AddMessage(TraceLevel.Verbose, "------Entering to getProtocolCommandList at ControlProxy"); cmds = myXmlRpcProxy.getProtocolCommandList(protocolIdx); LogFile.AddMessage(TraceLevel.Verbose, "------Leaving getProtocolCommandList at ControlProxy"); } } catch (Exception ex) { // Log the details of the exception LogException(ex, "getProtocolCommandList"); } return(cmds); }