class UserOptionsService {

    public HashMap<UserOptions, String> getCommonOptions() {
        HashMap<UserOptions, String> configMap =
                new HashMap<UserOptions, String>();
        configMap.put(UserOptions.ShowErrors,
                Boolean.toString(configHolder.getState().isShowError()));
        configMap.put(UserOptions.Themes, configHolder.getState()
                .getDisplayTheme().name());

        return configMap;
    }

    @Inject public  UserOptionsService(WebTransMessages messages, EventBus eventBus,
            CachingDispatchAsync dispatcher, UserConfigHolder configHolder);

}