It would be helpful to know if a database is accessed in client or embedded mode.
Suppose you distribute a database containing a JAR file added through sqlj.install_jar. The client can access it using the client driver or the embedded driver. The stored procedures won't be aware of the access mode. These stored procedures inside may need to connect to another database known to be present in a known location. Or may need to create another database. Knowledge of which driver is in use would help. in constructing the full URL to access the external database.
