using getService to instead to get service container