reference.setApp(refValue.getApp());
if (refValue.hasNameSpace()) {
reference.setNameSpace(refValue.getNameSpace());
}
Path path = new Path();
for (ReferenceValuePathElement element : refValue.pathElements()) {
Element newElement = new Element();
newElement.setType(element.getType());
if (element.hasName()) {
newElement.setName(element.getName());
}