added a factoryMethod attribute in order to allow the creation of the service implementation from a static method. Renamed factory attribute into factorySet