* @throws SQLException.
*/
private static EmbedConnection getEmbedConnection() throws SQLException {
//DERBY-4664 Do not use DriverManager("jdbc:default:connection") because
// some other product's Driver might hijack our stored procedure.
InternalDriver id = InternalDriver.activeDriver();
if (id != null) {
EmbedConnection conn = (EmbedConnection) id.connect( "jdbc:default:connection", null, 0 );
if (conn != null)
return conn;
}
throw Util.noCurrentConnection();