Copied from [ServiceFactoryI.java:269](https://github.com/openmicroscopy/openmicroscopy/blob/develop/components/blitz/src/ome/services/blitz/impl/ServiceFactoryI.java#L269). Not sure if it's worth moving into a common method/class?