private void checkEventFilterSupport(EventFilter[] filters)
throws UnsupportedRepositoryOperationException {
for (EventFilter ef : filters) {
if (ef instanceof EventFilterImpl) {
EventFilterImpl efi = (EventFilterImpl) ef;
if (efi.getNodeTypeNames() != null
&& !remoteServerProvidesNodeTypes) {
throw new UnsupportedRepositoryOperationException(
"Remote server does not provide node type information in events");
}
if (efi.getNoLocal() && !remoteServerProvidesNoLocalFlag) {
throw new UnsupportedRepositoryOperationException(
"Remote server does not provide local flag in events");
}
}
}