[Demonstration 1]

[Buggy Method]
@Override
public void setAsText(String text) throws IllegalArgumentException {
    String[] values = text.split(", ");
    Collection<Address> collection = new ArrayList<Address>();
    for (String value : values) {
        if (value.length() <= 1)
            continue;
        value.trim();
        String[] addressLine = value.split("--");
        Address address = new Address();
        address.setFirstLine(addressLine[0]);
        address.setSecondLine(addressLine[1]);
        address.setThirdLine(addressLine[2]);
        collection.add(address);
    }
    setValue(collection);
}

[Buggy Hunk]
Collection<Address> collection = new ArrayList<Address>();

[Patch]
AddressCollection collection = new AddressCollection();

[Demonstration 2]

[Buggy Method]
private boolean connect(String ep_name) {
    // if not connected attempt
    if (!this.isConnected(ep_name)) {
        if (this.mqtt(ep_name).connect(this.m_mqtt_host, this.m_mqtt_port, this.m_client_id, true)) {
            this.orchestrator().errorLogger().info("IoTEventHub: Setting CoAP command listener...");
            this.mqtt(ep_name).setOnReceiveListener(this);
            this.orchestrator().errorLogger().info("IoTEventHub: connection completed successfully");
        }
    } else {
        // already connected
        this.orchestrator().errorLogger().info("IoTEventHub: Already connected (OK)...");
    }
    // return our connection status
    this.orchestrator().errorLogger().info("IoTEventHub: Connection status: " + this.isConnected(ep_name));
    return this.isConnected(ep_name);
}

[Buggy Hunk]
if (this.mqtt(ep_name).connect(this.m_mqtt_host, this.m_mqtt_port, this.m_client_id, true)) {

[Patch]
if (this.mqtt(ep_name).connect(this.m_mqtt_host,this.m_mqtt_port,ep_name,this.m_use_clean_session)) {

[Demonstration 3]

[Buggy Method]
public static String getOrigin() {
    return origin;
}

[Buggy Hunk]
public static String getOrigin() {

[Patch]
public String getOrigin() {