Fixed issue on Ruby 1.9 and JRuby with getting Properties classes.