/**
   * Generates the field definition for the transient <code>rmCategoryIdentifier</code> property
   *
   * @param form The Form instance to add the property to
   * @param nodeRef The node the form is being generated for
   */
  protected void generateDispositionInstructionsPropertyField(Form form, NodeRef nodeRef) {
    String dataKeyName = FormFieldConstants.PROP_DATA_PREFIX + TRANSIENT_DISPOSITION_INSTRUCTIONS;
    PropertyFieldDefinition dispInstructionsField =
        new PropertyFieldDefinition(
            TRANSIENT_DISPOSITION_INSTRUCTIONS, DataTypeDefinition.TEXT.getLocalName());
    dispInstructionsField.setLabel(TRANSIENT_DISPOSITION_INSTRUCTIONS);
    dispInstructionsField.setDescription(TRANSIENT_DISPOSITION_INSTRUCTIONS);
    dispInstructionsField.setProtectedField(true);
    dispInstructionsField.setDataKeyName(dataKeyName);
    form.addFieldDefinition(dispInstructionsField);

    // use RMService to get disposition instructions
    DispositionSchedule ds = dispositionService.getDispositionSchedule(nodeRef);
    if (ds != null) {
      String instructions = ds.getDispositionInstructions();
      if (instructions != null) {
        form.addData(dataKeyName, instructions);
      }
    }
  }