// Use a strategy pattern to choose a particular strategy to handle the SQL request
JdbcConnector jdbcConnector = (JdbcConnector) endpoint.getConnector();
String statement = jdbcConnector.getStatement(endpoint);
Object payload = event.getMessage().getPayload();
SqlStatementStrategy strategy =
jdbcConnector.getSqlStatementStrategyFactory().create(statement, payload);
Connection connection = (Connection) connector.getTransactionalResource(endpoint);
return sqlStatementExecutor.execute(strategy,jdbcConnector, endpoint, event, event.getTimeout(), connection);
}