class CreateNamePayloadConverter implements PayloadConverter<CreateName> {

  @Override
  public BytesValue convertToPayload(final CreateName createName) {
    logger.debug("Convert to payload from {}", createName);
    final List<Object> args = new ArrayList<>();
    args.add(createName.getName().getValue());
    final Map<String, Object> map = new HashMap<>();
    map.put("Name", createName.getOperationName());
    map.put("Args", args);
    return mapper.marshal(map);
  }

}