Made the initStore method public to reuse the code

Made the initStore method public to make it accessible from the Server
project.