Using Reflection to avoid building multiple packages.

Using reflection to avoid generating multiple artifacts.