public static DataSource createDataSource(final String dataSourceFile) throws UncheckedIOException, UncheckedSQLException {
        InputStream is = null;
        try {
            is = new FileInputStream(Configuration.findFile(dataSourceFile));
            return createDataSource(is, dataSourceFile);
        } catch (IOException e) {
            throw new UncheckedIOException(e);
        } finally {
            IOUtil.close(is);
        }
    }
public static DataSource createDataSource ( final String dataSourceFile ) throws UncheckedIOException , UncheckedSQLException { InputStream is = null ; try { is = new FileInputStream ( Configuration . findFile ( dataSourceFile ) ) ; return createDataSource ( is , dataSourceFile ) ; } catch ( IOException e ) { throw new UncheckedIOException ( e ) ; } finally { IOUtil . close ( is ) ; } }
@param dataSourceFile
@return
@throws UncheckedIOException
@throws UncheckedSQLException
@see DataSource.xsd