Added RepositoryFactory and DefaultRepositoryFactory