Check method signature to "    // fleray : TODOXXX : Classes checked till there in module esri.layers ! "
Check classes :
ArcGISTiledMapServiceLayer -> FeatureLayer.