#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.${subpackage}.shared.services;

import org.dominokit.domino.api.shared.request.annotations.service.RequestFactory;
import org.dominokit.domino.api.shared.request.Response;
import {package}.${subpackage}.shared.response.${module}Response;
import ${package}.${subpackage}.shared.request.${module}Request;

import javax.ws.rs.Path;

@RequestFactory
public interface ${module}Service {
    @Path("${module}Request")
    Response<${module}Response> request(${module}Request request);
}

#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.${subpackage}.shared.services;

import org.dominokit.domino.api.shared.request.Response;
import org.dominokit.domino.api.shared.request.service.annotations.RequestFactory;
import ${package}.${subpackage}.shared.response.${module}Response;
import ${package}.${subpackage}.shared.request.${module}Request;

import javax.ws.rs.Path;

@RequestFactory
public interface ${module}Service {
    @Path("${module}Request")
    Response<${module}Response> request(${module}Request request);
}

move service generation to shared modules