final Object tmpThreadLocals = ThreadAccess.getThreadLocals(currentThread);
final Object tmpInheritableThreadLocals = ThreadAccess.getInheritableThreadLocals(currentThread);
ThreadAccess.setThreadLocals(currentThread, null);
ThreadAccess.setInheritablehreadLocals(currentThread, null);
try {
final Registration reg = kryo.readClass(input);
if (reg == null)
return null;
f = (Fiber) new FieldSerializer(kryo, reg.getType()).read(kryo, input, reg.getType());
f.fiberLocals = ThreadAccess.getThreadLocals(currentThread);
f.inheritableFiberLocals = ThreadAccess.getInheritableThreadLocals(currentThread);
return f;