package org.genericsystem.reactor;

public class ReactorStatics {

	public static final String BACKGROUND = "background";
	public static final String CHECKED = "checked";
	public static final String DISABLED = "disabled";
}

@@ -33,192 +33,1116 @@
 r;%0A%0A
-public class ReactorStatics %7B%0A%0A%09public static final String BACKGROUND = %22background%22;%0A%09public static final String CHECKED = %22checked%22;%0A%09public static final String DISABLED = %22disabled%22;
+import java.io.ByteArrayInputStream;%0Aimport java.io.ByteArrayOutputStream;%0Aimport java.io.IOException;%0Aimport java.io.ObjectInputStream;%0Aimport java.io.ObjectOutputStream;%0Aimport java.io.Serializable;%0Aimport java.util.Base64;%0A%0Apublic class ReactorStatics %7B%0A%0A%09public static final String BACKGROUND = %22background%22;%0A%09public static final String CHECKED = %22checked%22;%0A%09public static final String DISABLED = %22disabled%22;%0A%0A%09public static %3CT%3E T fromString(String s) %7B%0A%09%09byte%5B%5D data = Base64.getDecoder().decode(s);%0A%09%09ObjectInputStream ois;%0A%09%09try %7B%0A%09%09%09ois = new ObjectInputStream(%0A%09%09%09%09%09new ByteArrayInputStream(data));%0A%09%09%09Object o = ois.readObject();%0A%09%09%09ois.close();%0A%09%09%09return (T) o;%0A%09%09%7D catch (IOException %7C ClassNotFoundException e) %7B%0A%09%09%09throw new IllegalStateException(e);%0A%09%09%7D%0A%09%7D%0A%0A%09public static String toString(Serializable o) %7B%0A%09%09ByteArrayOutputStream baos = new ByteArrayOutputStream();%0A%09%09ObjectOutputStream oos;%0A%09%09try %7B%0A%09%09%09oos = new ObjectOutputStream(baos);%0A%09%09%09oos.writeObject(o);%0A%09%09%09oos.close();%0A%09%09%7D catch (IOException e) %7B%0A%09%09%09return null;%0A%09%09%7D%0A%09%09return Base64.getEncoder().encodeToString(baos.toByteArray());%0A%09%7D
 %0A%7D%0A

Add two methods for serialize/deserialize lambda in strings