Map<String, CommandScriptHandler> commandHandlers = new HashMap<>(); for (Map.Entry<String, ServiceProfile<CommandScriptHandler>> entry : profile.getCommandHandlers().entrySet()) { commandHandlers.put(entry.getKey(), entry.getValue().newInstance());
Map<String, CommandScriptHandler> commandHandlers = new HashMap<>(); for (Map.Entry<String, ServiceProfile<CommandScriptHandler>> entry : profile.getCommandHandlers().entrySet()) { commandHandlers.put(entry.getKey(), entry.getValue().newInstance());