class ObjectNodeCoercing extends BaseCoercing {

  @Override
  public Object parseLiteral(Object input, Map<String, Object> variables) throws CoercingParseLiteralException {
    if (!(input instanceof ObjectValue)) {
      log.error("Expected 'ObjectValue', got: {}", input);
      throw new CoercingParseLiteralException("Expected 'ObjectValue', got: " + input);
    }
    return JsonCoercingUtil.parseLiteral(input, variables);
  }

}