// Some statements won't have (or don't need) a keyspace (think USE, or CREATE).
if (statement.type != StatementType.SELECT && StatementType.REQUIRES_KEYSPACE.contains(statement.type))
keyspace = clientState.getKeyspace();
CqlResult result = new CqlResult();
if (!preExecutionHooks.isEmpty())
for (PreExecutionHook hook : preExecutionHooks)
statement = hook.processStatement(statement, context);