private EntitySelectionPage<T> createLocationSelectionPage(Wizard<?> wizard, EntityExplorerSupport explorer,
EntityType locatableType, Class<T> locatableClass) {
String title = String.format("Select a %s", (locatableType == EntityType.Source ? "Source" : "Target"));
EntitySelectionPage<T> page = new EntitySelectionPage<T>(wizard, title, explorer, locatableType,
locatableClass, new FileBasedLocationFilter());
page.setNewEntityVisitor(new Receiver<T>() {
@Override
public void handle(T object) {
Locatable locatable = (Locatable) object;