allow port to be used in restadapter template