Move code to a protected method

It is a small change I need to create a tool for sales team. I need to create a template clase from MuleApplicationContext