Added getEntity to documentRepository