code: protected SerializerFactory getSerializerFactory(boolean multipleClassLoader, boolean generic) {
          if (generic) {
              return multipleClassLoader ? new GenericMultipleClassLoaderSofaSerializerFactory() :
                  new GenericSingleClassLoaderSofaSerializerFactory();
          } else {
              return multipleClassLoader ? new MultipleClassLoaderSofaSerializerFactory() :
                  new SingleClassLoaderSofaSerializerFactory();
          }
      }
docs: Gets serializer factory.
  
  @param multipleClassLoader the multiple class loader
  @param generic             the generic
  @return the serializer factory