Service generation - under the hood