String (LocalTask task, String placeholder) { if ("id".equals(placeholder)) return task.getPresentableId(); if ("number".equals(placeholder)) return task.getNumber(); if ("summary".equals(placeholder)) return task.getSummary(); if ("project".equals(placeholder)) return StringUtil.notNullize(task.getProject()); if ("taskType".equals(placeholder)) return task.getType().name(); throw new IllegalArgumentException(placeholder); }