String password = RegistrySettings.getSetting("registry.jdbc.password");
DBUtil dbConnector = new DBUtil(url,username,password,driver);
return dbConnector;
} catch (InstantiationException e) {
logger.error("Error while accesing registrty settings ", e);
throw new RegistryException("Error while accesing registrty settings ", e);
} catch (IllegalAccessException e) {
logger.error("Error while reading registrty settings ", e);
throw new RegistryException("Error while accesing registrty settings ", e);
} catch (ClassNotFoundException e) {
logger.error("Error while reading registrty settings ", e);
throw new RegistryException("Error while accesing registrty settings ", e);
} catch (RegistrySettingsException e) {
logger.error("Error while reading registrty settings ", e);
throw new RegistryException("Error while accesing registrty settings ", e);
}
}