These ifs are all verbose ways of getSimpleName(), no?