Added support for installing the java templates in the addon dir.