DSMViewer port to java