// retrieve metadata folder
_metadataFolder = _tmlFile.getParent().getFolder(new Path("metadata"));
if (_metadataFolder.exists()) {
_metadataFile = _metadataFolder.getFile(_tmlFile.getName().substring(0, _tmlFile.getName().length() - _tmlFile.getFileExtension().length()) + "metadata.xml");
if (_metadataFile.exists()) {
XStream xstream = new XStream(new DomDriver());
xstream.alias(TMLMetadataInfo.XSTREAM_ALIAS, TMLMetadataInfo.class);
Reader reader = null;
try {
if(!_metadataFile.isSynchronized(IResource.DEPTH_ZERO)){
_metadataFile.refreshLocal(IResource.DEPTH_ZERO, new NullProgressMonitor());