pub fn alter_current_attributes<A: AttributeTrait>(
    create: bool,
    all: HashMap<String, A>,
    current_attributes: HashMap<String, String>,
    new_attributes: HashMap<String, String>
) -> HashMap<String, String>