Ensure @EncodedPath is not cast to @Path when processing method.