def create_data_element_from_resource(self, resource):
        """
        Returns a new data element for the given resource object.

        :returns: object implementing :class:`IResourceDataElement`.
        """
        mp = self.__mp_reg.find_or_create_mapping(type(resource))
        return mp.data_element_class.create_from_resource(resource)
Returns a new data element for the given resource object.

        :returns: object implementing :class:`IResourceDataElement`.