fix broken maven plugin since the recent changes to use immutable maps on Profile API
add better error reporting if the JMX operations fail