Move code toa protected method
changed code style
Merge pull request #7 from fernandofederico1984/mule-3.x

Move code to a protected method