public static String canonical(final Class<?> cls) { final WellKnownType wellKnownType = WellKnownType.lookup(cls); return wellKnownType != null ? wellKnownType.getName() : cls.getName(); }
public static String canonical(final String className) { final WellKnownType wellKnownType = WellKnownType.lookup(className); return wellKnownType != null ? wellKnownType.getName() : className; }