String xpath = bean.dtdName();
///boolean root = bean.isRoot();
boolean root = isRootElement(bean);
parentBean = bean.parent();
while(!root){
xpath = parentBean.dtdName() + Constants.XPATH_DELIMITER + xpath;
bean = parentBean;
parentBean = bean.parent();
///root = bean.isRoot();
root = isRootElement(bean);
}