def _create_context_element(type=None, is_pattern=None, id=None, attribute_list=None):
    """
    Function to create a context server body with the given attribute_list param.
    :param type (String): Context type
    :param is_pattern (Bool): Value of 'isPattern' attribute
    :param id (String): The id of the entity.
    :param attribute_list (list of dicts): All atribute values
            [{"name": "temperature", "type": "float", "value": "23"}, ...]
    :return (dict) Context element body. The contextElement in JSON will be like this:
            "contextElement" : {
                "type" : "Room",
                "isPattern" : "false",
                "id" : "Room1",
                "attributes" : [
                {
                    "name" : "temperature",
                    "type" : "float",
                    "value" : "23"
                }
                ]
            }
    """

    return {"attributes": attribute_list,
            "type": type,
            "isPattern": is_pattern,
            "id": id}