String sql, StatementNode stmt,
List<ParameterNode> params, int[] paramTypes)
{
if (!(stmt instanceof CallStatementNode))
return null;
CallStatementNode call = (CallStatementNode)stmt;
StaticMethodCallNode methodCall = (StaticMethodCallNode)call.methodCall().getJavaValueNode();
// This will signal error if undefined, so any special handling of
// non-AIS CALL statements needs to be tested by an earlier generator.
ServerCallInvocation invocation = ServerCallInvocation.of(server, methodCall);
final PostgresStatement pstmt;
switch (invocation.getCallingConvention()) {