class ClientServiceProxy {

    private static ConcurrentHashMap<String, Connection> connMap = new ConcurrentHashMap<>(1);

    public static PreparedStatement prepareStatement(String url, String sql) {<FILL_FUNCTION_BODY>}

    public static RuntimeException failed(String serviceName, Throwable cause) {
        return new RuntimeException("Failed to execute service: " + serviceName, cause);
    }

    public static boolean isEmbedded(String url) {
        return url == null || new ConnectionInfo(url).isEmbedded();
    }

    public static String getUrl() {
        return System.getProperty(Constants.JDBC_URL_KEY);
    }
}

        try {
            Connection conn = connMap.get(url);
            if (conn == null) {
                synchronized (connMap) {
                    conn = connMap.get(url);
                    if (conn == null) {
                        Properties info = new Properties();
                        info.put(ConnectionSetting.IS_SERVICE_CONNECTION.name(), "true");
                        conn = LealoneClient.getConnection(url, info).get();
                        connMap.put(url, conn);
                    }
                }
            }
            return conn.prepareStatement(sql);
        } catch (SQLException e) {
            throw new RuntimeException("Failed to prepare statement: " + sql, e);
        }
    
<no_super_class>