Got the answer, I have to create Document using the file bytes read from DB and then add them in to the configuration object---
create the document,
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document doc = builder.parse(bytesOfFile);
and then,
hibernateConfiguration.addDocument(doc);
This is worked for me. thanks.