added utility method to find if entity enclosing method
code clean up
unused classes removed
made final
computing content-type for response not required at this time
interruptedShutdown value was never reset, now corrected