package hu.supercluster.overpassapiquery;

import android.support.v4.app.FragmentActivity;

import org.androidannotations.annotations.EBean;
import org.androidannotations.annotations.RootContext;

import hu.supercluster.util.AbstractFragmentHandler;

@EBean
class ContainerFragmentHandler extends AbstractFragmentHandler {
    private MapFragment mapFragment;

    @RootContext
    ContainerActivity activity;

    @Override
    protected FragmentActivity getFragmentActivity() {
        return activity;
    }

    final MapFragment getMapFragment() {
        if (mapFragment == null) {
            mapFragment = getFragment(MapFragment.class, new MapFragment());
        }

        return mapFragment;
    }
}

@@ -634,19 +634,16 @@
 ment
+_
 .class,
- new
  Map
@@ -650,16 +650,33 @@
 Fragment
+_.builder().build
 ());%0A   

Use generated fragment