[rset] refactoring of _build_entity method
define a method for entity instantiation and storage in cache
(related to #9942503)
# -*- coding: utf-8 -*-# copyright %(year)s %(author)s, all rights reserved.# contact %(author-web-site)s -- mailto:%(author-email)s#%(long-license)s"""%(distname)s specific hooks and operations"""