try {
String jdbcUrl = ServerSettings.getCredentialStoreDBURL();
String jdbcUsr = ServerSettings.getCredentialStoreDBUser();
String jdbcPass = ServerSettings.getCredentialStoreDBPassword();
String driver = ServerSettings.getCredentialStoreDBDriver();
return new DBUtil(jdbcUrl,jdbcUsr,jdbcPass,driver);
} catch (InstantiationException e) {
logger.error("Error while accesing registrty settings ", e);
throw new RegException("Error while accesing registrty settings ", e);
} catch (IllegalAccessException e) {
logger.error("Error while reading registrty settings ", e);