public static String getGroupPrefix(final String name) {
        try {
            String s = "";
            if (MonsterIRC.getHookManager() != null) {
                if (MonsterIRC.getHookManager().getChatHook() != null) {
                    if (MonsterIRC
                            .getHookManager()
                            .getChatHook()
                            .getGroupPrefix(
                                    "",
                                    MonsterIRC.getHookManager().getChatHook()
                                            .getPrimaryGroup("", name)) != null) {
                        s = MonsterIRC
                                .getHookManager()
                                .getChatHook()
                                .getGroupPrefix(
                                        "",
                                        MonsterIRC.getHookManager()
                                                .getChatHook()
                                                .getPrimaryGroup("", name));

                    }
                }
            }
            return s;
        } catch (final Exception e) {
            return "";
        }
    }