tweak and new factory bean model for thrift server