Removed UI dependency when collecting input from template variables.
STS-3380, and other bug fixes: Removed dependency to UI widgets when
collecting template input, fixed bug where unzipping a template zip file
resulted in no contents due to output stream still being open and buffer
contents not written to file when unzipping was performed. In addition,
Java configuration now extends Template configuration so that both Java
and Template configuration can be applied to a Java project.