fix the getData function so that we do not convert a url to a java object since it is already a java object.