private void validateNodeKeyHasSource( String sourceName,
NodeKey nodeKey ) {
String sourceKey = NodeKey.keyForSourceName(sourceName);
if (nodeKey != null && !sourceKey.equals(nodeKey.getSourceKey())) {
throw new ConnectorException(JcrI18n.federationNodeKeyDoesNotBelongToSource, nodeKey, sourceName);
}
}