public DataSource newDataSource(final String driverClass, final String username,
                                    final String password, final String url) {
        return FunctionUtils.doUnchecked(() -> {
            val ds = new SimpleDriverDataSource();
            ds.setDriverClass((Class<Driver>) Class.forName(driverClass));
            ds.setUsername(username);
            ds.setPassword(password);
            ds.setUrl(url);
            return ds;
        });
    }
New simple data source.

@param driverClass the driver class
@param username    the username
@param password    the password
@param url         the url
@return the data source
support/cas-server-support-jpa-util/src/main/java/org/apereo/cas/configuration/support/JpaBeans.java