def get_entity_map_parameters(self, entity_map, delete_parameters = True):
    """
    Retrieves the entity map parameters value.
    The parameters are stored in a special part of
    the entity map, that is removed after read.
    The removal of the parameters is optional and may be
    prevented.

    :type entity_map: Dictionary
    :param entity_map: The entity map.
    :type delete_parameters: bool
    :param delete_parameters: If the parameters value should be
    removed from the entity map.
    :rtype: Dictionary
    :return: The parameters map for the entity.
    """

    # retrieves the entity parameters
    entity_parameters = entity_map.get("_parameters", {})

    # removes the parameters from the entity map
    # in order to avoid possible attribute problems
    # in case the delete parameters is set
    if delete_parameters and ("_parameters" in entity_map): del entity_map["_parameters"]

    # returns the entity parameters
    return entity_parameters