You need to check that the order type is not null and that its java class matches TestOrder. Infact ignore this comment, we are actually going to remove these methods from the subclass handlers and only have one in OrderResource1_10 and assume the client will specify an order type uuid in the query to filter to a given kind of orders