NamedMediaType had no hashCode method and it's used on map structures.
Missing NPE check on equals
synchronized block on atomic reference unnecessary, also a bad idea having a sleep inside synchronized block.