generating servlet configuration programmatically