SerializationContext ctx = ProtostreamMarshaller.getSerializationContext();
ctx.registerProtofile("/bank.protobin");
ctx.registerMarshaller(User.class, new UserMarshaller());
ctx.registerEnumEncoder(User.Gender.class, new GenderEncoder());
ctx.registerMarshaller(Address.class, new AddressMarshaller());
ctx.registerMarshaller(Account.class, new AccountMarshaller());
ctx.registerMarshaller(Transaction.class, new TransactionMarshaller());
return ctx;
}