code: public static <T extends Serializable> File serializeToTempFile(T obj) throws IOException
          {
                  File file = File.createTempFile(Serializer.class.getName().replace(".*\\.",""), null);
                  file.deleteOnExit();
                  serializeToFile(obj,file);
  		return file;
          }
docs: Serializes an object to a temporary file.
  @param obj The object to serialize.
  @return The file the object is serialized in. This file will already be set to be deleted on process exit.