Making the resource message parsing compatible with moto