JCTree.JCBlock readExternalBlock = methodBlockBuilder.readExternalBlock();
JCTree.JCMethodDecl readExternalMethod = getReadExternalMethod(utils, ioExceptionClass, classNotFoundExceptionClass, methodModifiers, objectInputClass, readExternalBlock);
JCTree.JCBlock prepareFlagsBlock = methodBlockBuilder.prepareFlagsBlock();
JCTree.JCMethodDecl prepareFlagsMethod = getPrepareFlagsMethod(utils, prepareFlagsBlock);
classDecl.defs = classDecl.defs.append(writeExternalMethod);
classDecl.defs = classDecl.defs.append(readExternalMethod);