models: changed Type from InputStreamReader to Reader for getDocument