Spring-ifying the semantic analyzer. Now for LOTS of cleanup in here.