[FrameworkBundle] Use more sophisticated validation and configuration.