added JavaDoc to service factory