Multiline regex for output
Java policy fixed for Oracle. Minor changes