Remove reflective code since min Java is 1.6