code: public static void injectInstanceImports(Instance instance, File templateFile, Writer writer)
  	throws IOException {
  
  		MustacheFactory mf = new DefaultMustacheFactory( templateFile.getParentFile());
  		Mustache mustache = mf.compile( templateFile.getName());
  		mustache.execute(writer, new InstanceBean( instance )).flush();
  	}
docs: Reads the import values of the instances and injects them into the template file.
  <p>
  See test resources to see the associated way to write templates
  </p>
  
  @param instance the instance whose imports must be injected
  @param templateFile the template file
  @param writer a writer
  @throws IOException if something went wrong