Library example with Service Locator fix