if (catalog != null) {
if (catalog != null && !catalog.equals("") && !catalog.equals("%")) {
    private void checkCatalogAndSchema(String catalog, String schema) throws SQLException {        if (catalog != null) {            throw new SQLException("Catalogs not supported");        }        if (schema != null) {            throw new SQLException("Schemas not supported");        }    }