private static void logToDetailsHTMLFile(UniProtEntry uniProtEntry) {
	
	    StringBuffer sb = new StringBuffer();
	    
	    sb.append("<html>");
	    sb.append("<body>");
	    sb.append("<table border=\"1\">");
	    
    	sb.append("<tr><td>\r\n");
    	//String imageTag = ncbiDownloadManager.getProteinImage(uniProtEntry);
    	//System.out.println("image = >>>>>>>>>>>>>>"+imageTag);
    	//sb.append(imageTag);
    	sb.append("<br/>");
 	
    	sb.append("</td></tr>\r\n");
	    
    	sb.append("<tr><td>\r\n");
    	Collection<DatabaseCrossReference> references = uniProtEntry.getDatabaseCrossReferences();
    	for(DatabaseCrossReference reference : references) {
    	sb.append(reference.getDatabase().toDisplayName());
    	sb.append("<br/>");
	    	}	
    	sb.append("</td></tr>\r\n");
    	
    	sb.append("<tr><td>\r\n");
    	for(DatabaseCrossReference reference : references) {
    	sb.append(reference);
    	sb.append("<br/>");
    	}	
    	sb.append("</td></tr>\r\n");
    	
    	sb.append("<tr><td>\r\n");
    	ArrayList<Gene> geneList = (ArrayList<Gene>) uniProtEntry.getGenes();
    	for(Gene myGene : geneList) {
    	sb.append(ncbiDownloadManager.getGeneFASTA(myGene.getGeneName().getValue(),uniProtEntry.getOrganism().getCommonName().getValue()));
    	sb.append("<br/>");
    	}	
    	sb.append("</td></tr>\r\n");
    	
    	
    	sb.append("<tr><td>\r\n");
    	sb.append(getPublicationList(uniProtEntry));
    	sb.append("</td></tr>\r\n");
    	
    	sb.append("<tr><td>\r\n");
    	
    	if(uniProtEntry.getSequence().getValue().length() > 20) {
	    	FastaSequence fsequence = new FastaSequence("Prot1", uniProtEntry.getSequence().getValue());
	    	Range[] ranges = Jronn.getDisorder(fsequence);
	    	for(int i=0;i<ranges.length;i++) {
	    		sb.append("<br/>From:"+ranges[i].from);
	    		sb.append("<br/>To:"+ranges[i].to);
	    		sb.append("<br/>Disorder Probability:"+ranges[i].score);
	    	}
    	}
    	sb.append("</td></tr>\r\n");
    	
    	sb.append("<tr><td>\r\n");
    	ArrayList<Feature> features =  (ArrayList<Feature>) uniProtEntry.getFeatures();
    	for(Feature feature : features) {
    	sb.append(feature.getType());
    	sb.append("<br/>");
    	sb.append(feature.getFeatureLocation().getStart());
    	sb.append("<br/>");
    	sb.append(feature.getFeatureLocation().getEnd());
    	sb.append("<br/>");
    	sb.append(feature.getFeatureLocation().getStart());
    	sb.append("<br/>");
    	}	
    	sb.append("</td></tr>\r\n");
    	
    	sb.append("</table>");
    	sb.append("</body>");
	    sb.append("</html>");
	 
	    try {
	    
	    File file = new File("C:\\Users\\addou\\Desktop\\UniProt\\details\\"+uniProtEntry.getPrimaryUniProtAccession().getValue()+"_details.html");
	    String content = sb.toString();
	    if (!file.exists()) {
		file.createNewFile();
		}
	 
		FileWriter fw = new FileWriter(file.getAbsoluteFile());
		BufferedWriter bw = new BufferedWriter(fw);
		bw.write(content);
		bw.close();
	 
	 
		} catch (IOException e) {
		e.printStackTrace();
		}
	}