Java layout fix

Added support for custom Java App layouts (WAR directory name).