code: public static Serializer getSerializer(Class<?> type) {
      Class<?> serializable = lookupSerializableType(type);
      Serializer serializer = serializers.get(serializable);
      if (serializer == null) {
        serializer = getInstance().createSerializer(serializable);
        serializers.put(serializable, serializer);
      }
      return serializer;
    }
docs: Gets a serializer instance.
  
  @param type The serializer type.
  @return A serializer instance.