protected Element getObjectBeanElement( String objectId ) {
try {
String xPath = MessageFormat.format( BEAN_ID_XPATH, objectId );
HashMap<String, String> map = new HashMap<String, String>();
map.put( "default", DEFAULT_NAMESPACE ); //$NON-NLS-1$
Dom4jXPath xpath = new Dom4jXPath( xPath );
xpath.setNamespaceContext( new SimpleNamespaceContext( map ) );
Element element = (Element) xpath.selectSingleNode( document );
return element;
} catch ( JaxenException jex ) {
return null;
}
}