@@ -0,0 +1,509 @@
+package com.coding4people.mosquitoreport.api;%0A%0Aimport org.glassfish.hk2.api.Factory;%0A%0Apublic class InstanceFactory%3CT%3E implements Factory%3CT%3E %7B%0A    private T instance = null;%0A%0A    public InstanceFactory() %7B%0A    %7D%0A    %0A    public InstanceFactory(T instance) %7B%0A        this.instance = instance;%0A    %7D%0A    %0A    public void setInstance(T instance) %7B%0A        this.instance = instance;%0A    %7D%0A%0A    @Override%0A    public void dispose(T t) %7B%0A    %7D%0A%0A    @Override%0A    public T provide() %7B%0A        return instance;%0A    %7D%0A%7D%0A

Create InstanceFactory