code: private static boolean isSerializable(JavaClass cls) throws ClassNotFoundException {
          JavaClass[] infs = cls.getAllInterfaces();
          for (JavaClass inf : infs) {
              String clsName = inf.getClassName();
              if ("java.io.Serializable".equals(clsName) || "java.io.Externalizable".equals(clsName)) {
                  return true;
              }
          }
          return false;
      }
docs: returns if the class implements Serializable or Externalizable
  
  @param cls
  the class to check for interfaces
  
  @return if the class implements Serializable or Externalizable
  
  @throws ClassNotFoundException
  if a super class or super interfaces can't be found