+ String msg = "An object with same name (" + sourceNodeName
+ + ") already exists at chosen target path";
+
+ // Add target rel path to the message
+ Session session;
+ String relPath;
+ try {
+ session = targetParentNode.getSession();
+ relPath = targetParentNode.getPath();
+ String basePath = SlcJcrResultUtils
+ .getMyResultsBasePath(session);
+ if (relPath.startsWith(basePath))
+ relPath = relPath.substring(basePath.length());
+ // FIXME currently add the default base label
+ parentRelPath = SlcUiConstants.DEFAULT_MY_RESULTS_FOLDER_LABEL + "/"
+ + relPath;
+ } catch (RepositoryException e) {
+ throw new SlcException("Unexpected error while defining "
+ + "target parent node rel path", e);
+ }
+ msg = msg + (parentRelPath == null ? "." : ": \n" + parentRelPath);
+
+ // Set Title
+ setTitle(msg);