Refactored Reflection using Apache commons