Searches for a repository with a specified name within the current session.
A smart pointer to the repository if it was found; otherwise, the method returns a NULL smart pointer if there is no repository with the specified name in the current session.