Improve debug message of invalid argument exception
Add repository manager interface