{
LOG.debug(MSG.getMessage( Keys.EVAL_XPATH_RPSET,xpathExpr.toString(),
resourcePropSet.getMetaData().getName().toString()));
}
XmlBeansResourcePropertySet xBeanPropSet;
try
{
xBeanPropSet = (XmlBeansResourcePropertySet) resourcePropSet;
}
catch ( ClassCastException cce )
{
throw new JAXRPCException( MSG.getMessage( Keys.ERROR_XPATH_EXPR_REQ_XMLBEANRPSET,
cce ));
}
XmlObject propsDocXBean = XmlBeanUtils.getRootElement( xBeanPropSet.toXmlObject( ) );
Element nsContextElem = xpathExpr.getNamespaceContext( );
if ( nsContextElem == null )
{
nsContextElem = ( (Document) propsDocXBean.newDomNode( ) ).getDocumentElement( );
}