final Expression sourceExpression = attMapping.getIdentifierExpression();
List<Pair> ls = elements.get(attMapping.getParentLabel());
if (ls != null) {
for (int i = 0; i < ls.size(); i++) {
Pair parentAttribute = ls.get(i);
String instancePath = attMapping.getInstanceXpath();
int count = 1;
String countXpath = parentAttribute.getXpath();
// if instance path not set, then element exists, with one instance
if (instancePath != null) {
countXpath = countXpath + XPATH_SEPARATOR + instancePath;
}
for (int j = 0; j < count; j++) {
final String bracketIndex = "";
String xpath;
if (instancePath == null) {
xpath = parentAttribute.getXpath() + XPATH_SEPARATOR
+ sourceExpression.toString();
} else {
xpath = parentAttribute.getXpath() + XPATH_SEPARATOR
+ instancePath + bracketIndex
+ XPATH_SEPARATOR + sourceExpression.toString();
}
String label = getFullQueryPath(attMapping);