log.debug("Full Hibernate Plugin's Session Factory using Hibernate Annotation Configuration");
} catch (Exception e) {
configuration = new Configuration();
log.debug("Full Hibernate Plugin's Session Factory using Hibernate XML Configuration");
}
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) {