private void addCommonDefinitionAnnotations(Definition definition, Element appinfoElement) { if (definition.getProcessing() != null) { addAnnotation(A_PROCESSING, definition.getProcessing().getValue(), appinfoElement); } if ((definition instanceof ItemDefinition) && ((ItemDefinition)definition).isOperational()) { addAnnotation(A_OPERATIONAL, "true", appinfoElement); } if (definition.getDisplayName() != null) { addAnnotation(A_DISPLAY_NAME, definition.getDisplayName(), appinfoElement); } if (definition.getDisplayOrder() != null) { addAnnotation(A_DISPLAY_ORDER, definition.getDisplayOrder().toString(), appinfoElement); } if (definition.getHelp() != null) { addAnnotation(A_HELP, definition.getHelp(), appinfoElement); } if (definition.isEmphasized()) { addAnnotation(A_EMPHASIZED, "true", appinfoElement); } }