added service factory to allow more control for service creation
resolve maven warnings