public IRemoteServerStatementPlan PrepareStatement(string statement, RemoteParam[] paramsValue, DebugLocator locator, out PlanDescriptor planDescriptor, RemoteProcessCleanupInfo cleanupInfo) { try { CleanupPlans(cleanupInfo); ServerStatementPlan statementPlan = (ServerStatementPlan)_serverProcess.PrepareStatement(statement, RemoteParamsToDataParams(paramsValue), locator); RemoteServerStatementPlan remotePlan = new RemoteServerStatementPlan(this, statementPlan); planDescriptor = GetPlanDescriptor(remotePlan); return(remotePlan); } catch (Exception E) { throw WrapException(E); } }