title: Error while converting PreparedStatement to SQLServerPreparedStatement
body: <pre><code>PreparedStatement st;
  st = getConnection().prepareStatement(sql);
  SQLServerPreparedStatement pStmt = (SQLServerPreparedStatement) st;
  </code></pre>
  <p>Error: class com.sun.proxy.$proxy89 cannot be cast to class com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement (com.sun.proxy.$proxy89 is in unnamed module of loader java.net.URLClassLoader.... com.microsoft.sqlserevr.jdbc.sqlserverpreparedstatement is in unnamed module of loader org.apache.catalina.loader.ParalellWebappClassloader)</p>
  <p>The error started occurring after upgrading eclipse to support gradle version 7.4.
  Current JDK Version is 11.0.2 and Current Eclipse Version is 2022-03</p>