implement suggestion from ralscha  https://github.com/ralscha/extdirectspring/issues/92#issuecomment-21479135