class DrishtiApplication extends Application {

    public Repository getRepository() {
        ArrayList<DrishtiRepository> drishtiRepositoryList = CoreLibrary.getInstance().context().sharedRepositories();
        DrishtiRepository[] drishtiRepositoryArray = drishtiRepositoryList.toArray(new DrishtiRepository[drishtiRepositoryList.size()]);
        if (repository == null) {
            repository = new Repository(getInstance().getApplicationContext(), null, drishtiRepositoryArray);
        }
        return repository;
    }

}