introduced String template to write service register class insted of
using AST