code: public static byte[] compose(Class<?> dataTypeClazz, Object dataValue, List<Class<?>> mapGenericClassses,
              boolean isCql3Enabled)
      {
          if (isCql3Enabled || (!isCql3Enabled && dataValue != null))
          {
              if (dataTypeClazz.isAssignableFrom(Map.class))
              {
                  return MapTypeBuilder.compose(dataValue, mapGenericClassses);
              }
          }
          return null;
      }
docs: Calls compose function of respective data type of object.
  
  @param dataTypeClazz
  the data type clazz
  @param dataValue
  the data value
  @param mapGenericClassses
  the map generic classses
  @param isCql3Enabled
  the is cql3 enabled
  @return the byte[]