contentId = tstate.getContentId();
} else if (state instanceof PersistentApplicationState) {
PersistentApplicationState pstate = (PersistentApplicationState) state;
contentId = pomMgr.execute(new PreferencesTask.GetContentId<S>(pstate.getStorageId()));
} else if (state instanceof CloneApplicationState) {
CloneApplicationState cstate = (CloneApplicationState) state;
contentId = pomMgr.execute(new PreferencesTask.GetContentId<S>(cstate.getStorageId()));
} else {
throw new AssertionError();
}
//