JNLP formatting is now only done if it should be included as template.
Some naming and comment improving.