// Path: camel-spring-mqtt/src/main/java/org/darugna/camel/mqtt/dto/Greeting.java
// public class Greeting {
// 
//     @Expose
//     private String greeting;
//     @Expose
//     private LocalDateTime greetingDate;
//     @Expose
//     private Map<String,Integer> recipients;
// 
//     // keep away from marshalling
//     private String toStringRepr;
// 
//     public String getGreeting() {
//         return greeting;
//     }
// 
//     public void setGreeting(String greeting) {
//         this.greeting = greeting;
//     }
// 
//     public LocalDateTime getGreetingDate() {
//         return greetingDate;
//     }
// 
//     public void setGreetingDateTime(LocalDateTime greetingDate) {
//         this.greetingDate = greetingDate;
//     }
// 
//     public Map<String, Integer> getRecipients() {
//         return recipients;
//     }
// 
//     public void setRecipients(Map<String, Integer> recipients) {
//         this.recipients = recipients;
//     }
//     
//     public void addRecipient(String recipient, Integer numberOfGreets) {
//         if (recipients == null) {
//             recipients = new HashMap<>();
//         }
//         recipients.put(recipient, numberOfGreets);
//     }
//     
//     @Override
//     public String toString() {
//         if (toStringRepr == null) {
//             final StringBuilder sb = new StringBuilder();
//             sb.append("On ").append(greetingDate)
//                     .append(" I said '").append(greeting).append("' to:");
//             recipients.keySet().forEach(k -> {
//                 sb.append(" ").
//                         append(k).append(" ")
//                         .append(recipients.get(k))
//                         .append(" times.");
//             });
//             toStringRepr = sb.toString();
//         }
//         return toStringRepr;
//     }
// 
// }


import com.google.gson.ExclusionStrategy;
import com.google.gson.FieldAttributes;
import java.lang.annotation.Annotation;
import org.darugna.camel.mqtt.dto.Greeting;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
package org.darugna.camel.mqtt;



public class AnnotationExclusionStrategy implements ExclusionStrategy {

    private final static Logger log = LoggerFactory.getLogger(AnnotationExclusionStrategy.class);

    @Override
    public boolean shouldSkipField(FieldAttributes fa) {
        // On other classes marshal all fields
// Path: camel-spring-mqtt/src/main/java/org/darugna/camel/mqtt/dto/Greeting.java
// public class Greeting {
// 
//     @Expose
//     private String greeting;
//     @Expose
//     private LocalDateTime greetingDate;
//     @Expose
//     private Map<String,Integer> recipients;
// 
//     // keep away from marshalling
//     private String toStringRepr;
// 
//     public String getGreeting() {
//         return greeting;
//     }
// 
//     public void setGreeting(String greeting) {
//         this.greeting = greeting;
//     }
// 
//     public LocalDateTime getGreetingDate() {
//         return greetingDate;
//     }
// 
//     public void setGreetingDateTime(LocalDateTime greetingDate) {
//         this.greetingDate = greetingDate;
//     }
// 
//     public Map<String, Integer> getRecipients() {
//         return recipients;
//     }
// 
//     public void setRecipients(Map<String, Integer> recipients) {
//         this.recipients = recipients;
//     }
//     
//     public void addRecipient(String recipient, Integer numberOfGreets) {
//         if (recipients == null) {
//             recipients = new HashMap<>();
//         }
//         recipients.put(recipient, numberOfGreets);
//     }
//     
//     @Override
//     public String toString() {
//         if (toStringRepr == null) {
//             final StringBuilder sb = new StringBuilder();
//             sb.append("On ").append(greetingDate)
//                     .append(" I said '").append(greeting).append("' to:");
//             recipients.keySet().forEach(k -> {
//                 sb.append(" ").
//                         append(k).append(" ")
//                         .append(recipients.get(k))
//                         .append(" times.");
//             });
//             toStringRepr = sb.toString();
//         }
//         return toStringRepr;
//     }
// 
// }


// Path: camel-spring-mqtt/src/main/java/org/darugna/camel/mqtt/AnnotationExclusionStrategy.java
import com.google.gson.ExclusionStrategy;
import com.google.gson.FieldAttributes;
import java.lang.annotation.Annotation;
import org.darugna.camel.mqtt.dto.Greeting;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

package org.darugna.camel.mqtt;



public class AnnotationExclusionStrategy implements ExclusionStrategy {

    private final static Logger log = LoggerFactory.getLogger(AnnotationExclusionStrategy.class);

    @Override
    public boolean shouldSkipField(FieldAttributes fa) {
        // On other classes marshal all fields
        if (!fa.getDeclaringClass().equals(Greeting.class)) {