title: Groovy throws MissingPropertyException when calling getter method
body: <p>I'm writing a small Groovy script for Hybris.</p>
  
  <p>For reasons unknown when I attempt to call .getCronExpression() Groovy tries to get a property named getCron.</p>
  
  <pre><code>Script execution has failed [reason: groovy.lang.MissingPropertyException: No such property: getCron for class: de.hybris.platform.cronjob.model.TriggerModel]
  </code></pre>
  
  <p>The getter which I try to call exists on the class.</p>
  
  <pre><code>def methods = TriggerModel.declaredMethods.findAll { !it.synthetic }.name
  println methods;
  //[getDaysOfWeek, getWeekInterval, setDaysOfWeek, setWeekInterval, getRelative, getJob, setActivationTime, setMaxAcceptableDelay, getTimeTable, setActive, setJob, getCronJob, getActivationTime, setDateRange, getDateRange, getMaxAcceptableDelay, getCronExpression, setCronExpression, setCronJob, getActive, setRelative, setDay, setHour, setMinute, setSecond, getHour, getMinute, getSecond, getYear, getMonth, setYear, setMonth, getDay]
  </code></pre>
  
  <p>Code part:</p>
  
  <pre><code>def currentDate = new Date();
  def query = new FlexibleSearchQuery("SELECT {pk} FROM {cronjob} WHERE {active} IS true");
  def result = flexibleSearchService.search(query).getResult();
  for (cj in result) {
    def activeTriggers = cj.getTriggers().stream().filter{p -&gt; p.getActive()}.collect();
  
    if (activeTriggers){
      def at = activeTriggers.get(0);
      def activationTS = at.getActivationTime(); // works
      if (activationTS.before(currentDate)){
        println cj.code + " has invalid next activation date set: " + activationTS; 
      }
  
      def x = at.getCronExpression(); // error
    }
  </code></pre>
  
  <p>Update: the project uses hybris 5.7</p>