ArrayList<DataProvider> dataProviders = new ArrayList<DataProvider>();
if (config.getInitParameter("dataProviders") != null) {
String[] providers = config.getInitParameter("dataProviders").split(",");
for (String dsName : providers) {
try {
DataProvider d = (DataProvider) (this.getClass().getClassLoader().loadClass(dsName)).newInstance();
dataProviders.add(d);
}
catch (ClassNotFoundException e) {
e.printStackTrace();
}