Few fixes (AbstractResourceRepository now working).