public static OmeroContext getClientContext( Properties props )
public static OmeroContext getClientContext()
    public static OmeroContext getClientContext( Properties props )    {        if ( props ==  null )            throw new ApiUsageException(                    "Properties argument may not be null."                    );                Properties copy = new Properties( props );        ConstructorArgumentValues ctorArg = new ConstructorArgumentValues();        ctorArg.addGenericArgumentValue( copy );        BeanDefinition definition             = new RootBeanDefinition(Properties.class, ctorArg, null);        StaticApplicationContext staticContext = new StaticApplicationContext();        staticContext.registerBeanDefinition( "properties", definition );        staticContext.refresh();                OmeroContext ctx = new Locator( ).lookup( CLIENT_CONTEXT );        ctx.setParent( staticContext );        ctx.refresh();        return ctx;    }