// Bind the factory first, so normally people get the factory, not the service
allDescriptors.add(boundAsFactory);
allDescriptors.add(boundAsService);
return new FactoryDescriptors() {
@Override
public Descriptor getFactoryAsAService() {
return boundAsService;
}