Path mode = null;
if( xmode != null ){
mode = new Path( xmode.getString() );
}
String root = element.getElement( "root" ).getString();
DockableProperty location = transformer.readXML( element.getElement( "location" ) );
if( mode == null ){
mode = guessMode( location );
}
return new Location( mode, root, location );
}