code: public static void writeToFile(final File fileNode, final byte[] data) throws FrameworkException, IOException {
  
  		setFileProperties(fileNode);
  
  		FileUtils.writeByteArrayToFile(fileNode.getFileOnDisk(), data);
  
  	}
docs: Write binary data from byte[] to a file and reference the file on disk at the
  given file node
  
  @param fileNode
  @param data
  @throws FrameworkException
  @throws IOException