ContentSession contentSession = getSessionDelegate().getContentSession();
if (!(contentSession instanceof Observable)) {
throw new UnsupportedRepositoryOperationException("Observation not supported for session " + contentSession);
}
observationManager = new ObservationManagerImpl(
delegate,
ReadOnlyNodeTypeManager.getInstance(delegate.getRoot(), namePathMapper),
namePathMapper, whiteboard);
}
return observationManager;