code: protected XmlSchemaMaxLengthFacet createMaxLengthFacet(final int length) {
          XmlSchemaMaxLengthFacet xmlSchemaMaxLengthFacet = new XmlSchemaMaxLengthFacet();
          xmlSchemaMaxLengthFacet.setValue(length);
          return xmlSchemaMaxLengthFacet;
      }
docs: Create an XML schema maxLength facet.
  
  @param length the value to set
  @return an XML schema length facet