[Demonstration 1]

[Buggy Method]
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    long shortcutId = getShortcutId(getIntent());
    Map<String, String> variableValues = getVariableValues(getIntent());
    controller = destroyer.own(new Controller(getContext()));
    final Shortcut shortcut = controller.getShortcutById(shortcutId);
    if (shortcut == null) {
        showToast(getString(R.string.shortcut_not_found), Toast.LENGTH_LONG);
        finishWithoutAnimation();
        return;
    }
    if (shortcut.feedbackUsesUI()) {
        switch(shortcut.getFeedback()) {
            case Shortcut.FEEDBACK_ACTIVITY:
                {
                    setTheme(R.style.LightTheme);
                    setContentView(R.layout.activity_execute);
                    break;
                }
        }
    }
    Promise promise = execute(shortcut, variableValues);
    if (promise.isPending()) {
        promise.done(new DoneCallback() {

            @Override
            public void onDone(Object result) {
                if (!shortcut.feedbackUsesUI()) {
                    finishWithoutAnimation();
                }
            }
        }).fail(new FailCallback() {

            @Override
            public void onFail(Object result) {
                finishWithoutAnimation();
            }
        });
    } else {
        if (!shortcut.feedbackUsesUI()) {
            finishWithoutAnimation();
        }
    }
}

[Buggy Hunk]
controller = destroyer.own(new Controller(getContext()));

[Patch]
controller = new Controller(getContext());

[Demonstration 2]

[Buggy Method]
@Override
public Vec3d read(PacketBuffer buf) throws IOException {
    return new Vec3d(buf.readDouble(), buf.readDouble(), buf.readDouble());
}

[Buggy Hunk]
public Vec3d read(PacketBuffer buf) throws IOException {

[Patch]
public Vec3d read(PacketBuffer buf) {

[Demonstration 3]

[Buggy Method]
public static Controller getController(Context context) {
    if (null == controller) {
        controller = (Controller) CommonInitializer.initializeController(context);
        if (controller == null)
            throw new IllegalStateException("Controller Impl class can't be detected");
        CommonApp.setInstance(controller);
    }
    return controller;
}

[Buggy Hunk]
if (null == controller) {

[Patch]
if (null == controller || controller.isAppQuit()) {