static A jextractSerializedObject(S s, Class c) {
L tok = javaTok(s);
int i = indexOf(tok, shortClassName(c));
if (i < 0) null;
int j = i+1;
if (eq(get(tok, i+2), "("))
j = findEndOfBracketPart(tok, i+2);
s = joinSubList(tok, i, j);
ifdef jextractSerializedObject_debug
print("ser >> " + s);
endifdef
ret (A) unstruct(s);
}