Consider moving this into the default case for the switch, and please add a little more communicative text to the NotImpl so that we can know what the problem is without the whole stack trace.