Extract query parameter into a bean