Now uing isAssignableFrom() to detect when a class implements a certain interface (Serializable and Externalizable).