title: Starting and Stopping an InboundChannelAdapter manually
body: <p>I'm trying to start an InboundChannelAdapter manually using a @Scheduled function. I think I'm setting up the message payload wrong but I'm not sure what to have it as. Here's the code:</p>
  <pre><code>@EnableScheduling
  @EnableBinding(Source.class)
  public class KafkaSource {
  
      @Autowired
      @Qualifier(Source.OUTPUT)
      private MessageChannel controlBusChannel;
  
      @Scheduled(cron=&quot;0 27 0 * * *&quot;, zone=&quot;US/Eastern&quot;)
      public void run() {
          System.out.println(&quot;REACHED&quot;);
          Message controlMessage = MessageBuilder.withPayload(&quot;@'source.input.inboundChannelAdapter'.start()&quot;).build();
          controlBusChannel.send(controlMessage);
      }
  
      @InboundChannelAdapter(value = Source.OUTPUT, poller = @Poller(fixedDelay = &quot;1&quot;), autoStartup = &quot;false&quot;) 
      public AgentCreated consumeAndSendMessage() {
           // UNIMPORTANT CODE
      }
  }
  </code></pre>
  <p>I'm getting this error:</p>
  <pre><code>Caused by: org.springframework.expression.spel.SpelEvaluationException: EL1004E: Method call: Method transform(java.lang.String) cannot be found on type com.company.transformer.SpecialNotesTransformer$$EnhancerBySpringCGLIB$$c10d699d
  </code></pre>
  <p>The error occurs at the controlBusChannel.send() line and the transformer in the error is the first one that runs after the source.  How do I frame the message payload properly? The channel is created automatically by the <a href="https://github.com/spring-cloud/spring-cloud-stream/blob/main/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/messaging/Source.java" rel="nofollow noreferrer">Source.class</a> in Spring Cloud Stream library.</p>