if (xmlConfigurationFile.exists()) {
input = new FileInputStream(xmlConfigurationFile);
} else {
input = Thread.currentThread().getContextClassLoader().getResourceAsStream(gfacProfile);
}
ConfigurationDocument configurationDoc = ConfigurationDocument.Factory.parse(input);
return configurationDoc.getConfiguration();
} catch (FileNotFoundException e) {
throw new GfacException(e,FaultCode.InitalizationError);
} catch (XmlException e) {
throw new GfacException(e,FaultCode.InitalizationError);
} catch (IOException e) {