Reflection

Use reflection instead of direct nms