Replacing reflection with reflections library (previous reflection didn't work when deployed as JAR)