public void execute(AdminCommandContext context) {
final ActionReport report = context.getActionReport();
try {
JvmOptionBag bag;
if (addToProfiler) { //make sure profiler element exists before creating a JVM option for profiler
if (jc.getProfiler() == null) {
report.setMessage(lsm.getString("create.profiler.first"));
report.setActionExitCode(ActionReport.ExitCode.FAILURE);
return;