ModeShape/modeshape — pull request #378 by hchiorean (2012-05-14 17:59:55+00:00)
Title: Mode 1312 - Implemented workspace copy & clone

In addition, updated the handling of references with respect to node identifiers:

- internally NodeKeyReference instances are used as much as possible (as opposed to converting between strings)
- a new node reference cannot be created to a node which "outside the process" of the session/context from which it is being manipulated
- node.getIdentifier returns either the full key string (for foreign nodes = nodes which have a different ws/source from the ws/source of the session's root key) or just the identifier part for local nodes.
- NodeKeyReference uses the foreign node concept when returning its string representation