We are importing MoreObjects through Class, let's go through
JavaTypeName, centralized in JavaFileTemplate. Also use 'var' to elide
the need to refer to it twice.
Change-Id: Id7fa0625e8d939195654b710e5f9847303c33861 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>