Example?
public class SometimesPersistableObject implements Publishable { public SometimesPersistableObject(..., boolean persistThisInstance) { this.persistThisInstance = persistThisInstance; } public boolean isPersistable() { return persistThisInstance; }