implementation of method for factory of named entities
distribution facotry now works using generic factory