Repository#REPOSITORY_EMPTY and Repository#REPOSITORY_NOT_EMPTY initial support