Added mongodb/morphia based reository management logic