}
configuration.configure(file);
log.debug("Full Hibernate Plugin's Session Factory configuration file \""+file+"\" configured");
String fileProperties = file.substring(1,file.length()).replace(".cfg", "").replace("xml", "properties");
Resource resource = new Resource(fileProperties);
if (resource.getURL()!=null) {
String fullpath = resource.getURL().getPath().replace("%20", " ");
FileInputStream fis = new FileInputStream(fullpath);
Properties properties = new Properties();
properties.load(fis);
fis.close();
configuration.addProperties(properties);