Added registration method for servlets.