Code example for AtomicBoolean

public class PrefixRename implements PropertyConverter 
  private final String prefix;
  private final String outputPrefix;
  private final AtomicBoolean ran = new AtomicBoolean(false);
  public PrefixRename( 
      String prefix,
      String outputPrefix
    this.prefix = prefix;
    this.outputPrefix = outputPrefix;
  public boolean canHandle(String property)
    return property.startsWith(prefix) && !ran.get();
Connect your IDE to all the code out there  Get Codota for Java