class VirtualSQLDataSource implements javax.sql.DataSource {

    protected static boolean includeCurrentSchema(Connection conn, String schema) {
        try {
            String connectionURL = conn.getMetaData().getURL().toLowerCase();
            /**
             * bug JRS-19585 Cannot get context of VDS based on cassandra (simba) datasource in Domain Designer
             * for simba cassandra driver: VDS should only contains selected key space, ignore all system schemas
             */
            if (connectionURL.startsWith("jdbc:cassandra")) {
                int index = connectionURL.indexOf(";");
                if (index > 0 && index < connectionURL.length()) {
                    String paramString = connectionURL.substring(index + 1);
                    Properties p = new Properties();
                    p.load(new StringReader(paramString.replaceAll(";", "\n")));
                    String selectedSchema = p.getProperty("defaultkeyspace");
                    return (schema.equals(selectedSchema));
                }
            }
        } catch (Exception ex) {};
        return true;
    }

    public  VirtualSQLDataSource(ConnectionFactory connectionFactory);

}