public DataGraph loadDataGraph(InputStream inputStream, Map options, HelperContext scope) throws IOException {
if (scope == null) {
scope = HelperProvider.getDefaultContext();
}
TypeHelper th = scope.getTypeHelper();
DataGraph result = null;
if (th == null || th == TypeHelper.INSTANCE) {
result = loadDataGraph(inputStream, options);
} else if (options == null) {
options = new HashMap();
registerLoadingScope(options, th);