cannot inherit because ServiceLocator will not find class