code: static void createFileFromResourceCheckSizeDiff(String resource, Resource file) throws IOException {
  	ByteArrayOutputStream baos = new ByteArrayOutputStream();
  	IOUtil.copy(InfoImpl.class.getResourceAsStream(resource), baos, true, false);
  	byte[] barr = baos.toByteArray();
  
  	if (file.exists()) {
  	    long trgSize = file.length();
  	    long srcSize = barr.length;
  	    if (srcSize == trgSize) return;
  
  	    SystemOut.printDate(SystemUtil.getPrintWriter(SystemUtil.OUT), "update file:" + file);
  	    SystemOut.printDate(SystemUtil.getPrintWriter(SystemUtil.OUT), " - source:" + srcSize);
  	    SystemOut.printDate(SystemUtil.getPrintWriter(SystemUtil.OUT), " - target:" + trgSize);
  
  	}
  	else file.createNewFile();
  
  	// SystemOut.printDate("write file:"+file);
  	IOUtil.copy(new ByteArrayInputStream(barr), file, true);
      }
docs: creates a File and his content froma a resurce
  
  @param resource
  @param file
  @throws IOException