    public static final ServiceLocator instance()
    {
    	if (context == null)
    	{
    		context = new org.springframework.context.annotation.AnnotationConfigApplicationContext();
    		((org.springframework.context.annotation.AnnotationConfigApplicationContext) context).scan("org.molgenis");
    		((org.springframework.context.annotation.AnnotationConfigApplicationContext) context).refresh();
    	}
        return instance;
    }

    public static final ServiceLocator instance()
    {
    	if (context == null)
    	{
    		context = new org.springframework.context.support.ClassPathXmlApplicationContext();
    	}
        return instance;
    }
