}
@Override
public Location getLocation() {
try {
Location location = get(Location.KEY);
if (location == null) {
//throw new AssertionError("No location set");
location = new Location(new ViewImpl(Location.KEY)) {};
final Entry locationEntry = new Entry(location,
Location.PROP_MODES, ContextType.VIEW_CAPABLE).init(true, false);
mapFinder.getMapAndCreateIfNeeded().put(Location.KEY, locationEntry);
}
return location;