throw new IllegalStateException( "detected dockable with no identifier" );
}
}
if( id != null ){
ExtendedMode current = manager.getMode( dockable.intern().asDockable() );
LocationHistory history = dockable.getLocationHistory();
List<Path> order = history.getOrder();
Map<Path, Location> locations = history.getLocations();
modes.add( id, current == null ? null : current.getModeIdentifier(), locations, order );
}