Class[] interfaces = representationClass.getInterfaces();  int i = 0; while (i < interfaces.length) { if (interfaces[i].getName().equals("java.io.Serializable")) return true; ++i; }  return false;
return Serializable.class.isAssignableFrom(representationClass);
  public boolean isRepresentationClassSerializable()  {  Class[] interfaces = representationClass.getInterfaces();  int i = 0;  while (i < interfaces.length)    {      if (interfaces[i].getName().equals("java.io.Serializable"))          return true;      ++i;    }    return false;  }