public static ResourceFactory Instance() { if (resourceFactory == null) { resourceFactory = new ResourceFactory(); } return resourceFactory; }