private Document loadCruxPage(InputStream file,String filename,String device){
  try {
    Document document=documentBuilder.parse(file);
    return preprocess(document,device);
  }
 catch (  Exception e) {
    log.error("Error parsing file: [" + filename + "] for DeviceAdaptive interface ["+ device+ "]: "+ e.getMessage(),e);
    throw new RuntimeException(e.getMessage(),e);
  }
}

private Document loadCruxPage ( InputStream file , String filename , String device ) { try { Document document = documentBuilder . parse ( file ) ; return preprocess ( document , device ) ; } catch ( Exception e ) { log . error ( "Error parsing file: [" + filename + "] for DeviceAdaptive interface [" + device + "]: " + e . getMessage ( ) , e ) ; throw new RuntimeException ( e . getMessage ( ) , e ) ; } }
loads crux view page
