Bug 1077418 - [hotfix] Restart operation on EAP 5 resource doesn't return failure message when restart fails

(cherry picked from commit 145463496ed1b6dcc7d09193965a77c737bc29b4)
(cherry picked from commit 199bc72496279ff8732f2b8070f9ccecf0c9856d)

Removed unused imports which failed the build
(cherry picked from commit a6e431b63a725d7f4053d0aa7e05d27cce79a18a)