Add Java program to add BOM to load file