label = RenderUtils.getResourceString(RenderUtils.RESOURCE_LABEL_PREFIX + "." + slotName);  if (label != null) { return label; }
    public static String getSlotLabel(Class objectType, String slotName, String key) {        String label = null;                if (key != null) {            label = RenderUtils.getResourceString(key);        }            if (label != null) {            return label;        } else if (key != null) {            logger.warn("Key specified for slot '" + slotName + "' does not exist: " + key);        }            label = RenderUtils.getResourceString(RenderUtils.RESOURCE_LABEL_PREFIX + "." + objectType.getName() + "."                + slotName);            if (label != null) {            return label;        }            label = RenderUtils.getResourceString(slotName);            if (label != null) {            return label;        }            if (slotName.contains(".")) {            label = RenderUtils.getResourceString(slotName.substring(slotName.lastIndexOf(".") + 1));        }            if (label != null) {            return label;        }                return slotName;    }    