private void loadDocument(Environment env, String uri, File file) {
public void loadDocument(Environment env, String uri, File file) {
    private void loadDocument(Environment env, String uri, File file) {        try {            env.printLine("Loading file " + file.getAbsolutePath() + "...");            XdbcDataSource dataSource = (XdbcDataSource)env.getDataSource();            XDMPDocInsertStream dis = dataSource.getDocInsertStream(uri);            InputStream inputStream = new FileInputStream(file);            byte[] buffer = new byte[100000];            int byteCount = 0;            int rc;            while ((rc = inputStream.read(buffer)) >= 0) {                dis.write(buffer, 0, rc);                byteCount += rc;            }            dis.flush();            dis.commit();            dis.close();            inputStream.close();            env.printLine("Done. Loaded " + byteCount + " bytes.");        } catch(XDBCException e) {            env.printLine("Failed to load document: " + e.getMessage());        } catch(XQException e) {            env.printLine("Failed to load document: " + e.getMessage());        } catch(IOException e) {            env.printLine("Failed to load document: " + e.getMessage());        }    }