try {
datasourceMgmtSvc.deleteDatasourceByName( connection.getName() );
clearDatasource( connection.getName() );
return true;
} catch ( NonExistingDatasourceException nonExistingDatasourceException ) {
<BUG>String message = Messages.getErrorString(
"ConnectionServiceImpl.ERROR_0006_UNABLE_TO_DELETE_CONNECTION", //$NON-NLS-1$

connection.getName(),
nonExistingDatasourceException.getLocalizedMessage()

);</BUG>
throw new ConnectionServiceException( Response.SC_NOT_FOUND, message, nonExistingDatasourceException );

try {
IPluginResourceLoader resLoader = PentahoSystem.get( IPluginResourceLoader.class, null );
dataAccessClassName = resLoader.getPluginSetting( getClass(),
"settings/data-access-permission-handler", SimpleDataAccessPermissionHandler.class.getName() ); //$NON-NLS-1$
Class<?> clazz = Class.forName( dataAccessClassName, true, getClass().getClassLoader() );
Constructor<?> defaultConstructor = clazz.getConstructor( new Class[] {} );
dataAccessPermHandler = (IDataAccessPermissionHandler) defaultConstructor.newInstance();
IPentahoObjectFactory objectFactory = PentahoSystem.getObjectFactory();
datasourceService = objectFactory.objectDefined( IDBDatasourceService.class )
?  objectFactory.get( IDBDatasourceService.class, null ) : null;
