protected final void addActorPathTagsTo(final ActorPath actorPath, final List<String> tags) {
// TODO: Improve detection of routed actors. This only detects "root" unnamed actors
String lastPathElement = actorPath.elements().last();
if (lastPathElement.startsWith("$")) {
// this is routed actor.
final ActorPath parent = actorPath.parent();
if (isUserRoot(parent)) {
// the parent is akka://xxx/user
tags.add(actorPathToString(actorPath));
} else {
// the parent is some other actor, akka://xxx/user/foo