protected void onCreateNote() {
String appliesToId = record == null ? entityData.getName() : record.getAsString(BioPortalNoteConstants.ID);
String appliesToType = null;
if (record == null) { // new note
ValueType valueType = UIUtil.guessValueType(entityData);
valueType = valueType == null ? ValueType.Instance : valueType;
appliesToType = BioPortalNoteConstants.VALUE_TYPE_2_ENTITY_TYPE.get(valueType);
} else { //reply
appliesToType = BioPortalNoteConstants.ENTITY_TYPE_NOTE;
}