Use isPrivate method instead of name() string check
Output full name (with namespace) rather than short version