code: public static TypeSerializer<?> getValidationSerializerClassInstance(Class<?> dataType, boolean isCql3Enabled)
      {
          resetMapperForCQL3(isCql3Enabled);
          TypeSerializer<?> validation_class;
          validation_class = validationSerializerClassMapper.get(dataType);
          if (validation_class == null)
          {
              if (dataType.isEnum())
              {
                  validation_class = UTF8Serializer.instance;
              }
              else
              {
                  validation_class = BytesSerializer.instance;
              }
          }
          resetMapperForThrift(isCql3Enabled);
          return validation_class;
      }
docs: Gets the validation serializer class instance.
  
  @param dataType
  the data type
  @param isCql3Enabled
  the is cql3 enabled
  @return the validation serializer class instance