class KeyPrettifier {

    public String prettifyKey(KeyDto key) {
        if (key == null) {
            return "";
        }

        String parentValue = writeParentKeys(key);

        String kind = key.getKind();

        long id = key.getId();
        String name = key.getName();
        String idName = getIdName(id, name);

        return parentValue + appMessages.keyPrettifyTemplate(kind, idName);
    }

    @Inject  KeyPrettifier(
            AppMessages appMessages);

}