@Override
public Map<Long, WindowState> getWindowStates() {
final Map<Long, WindowState> simpleWindowStates = new LinkedHashMap<Long, WindowState>();
synchronized (this.windowStates) {
for (Map.Entry<StylesheetDescriptorImpl, WindowState> windowStateEntry : windowStates.entrySet()) {
final StylesheetDescriptorImpl stylesheetDescriptor = windowStateEntry.getKey();
final long stylesheetDescriptorId = stylesheetDescriptor.getId();
final WindowState windowState = windowStateEntry.getValue();
simpleWindowStates.put(stylesheetDescriptorId, windowState);
}
}
return Collections.unmodifiableMap(simpleWindowStates);