The Danger Theory and Its Application to Artificial Immune Systems