Check if object to compare against is of type CommunicationPath.
Remove useless imports.