Removed problem caused by multiple declarations of servlets
Encodes templates based on a maximum level