Updated logic for resolving serializer

Signed-off-by: rpgmaker <olamide.bakre@gmail.com>