{
    EAnnotation eAnnotation = getAnnotation(eDataType, false);
    if (eAnnotation != null)
    {
      String maxLengthLiteral = eAnnotation.getDetails().get("maxLength");
      if (maxLengthLiteral != null)
      {
        return Integer.parseInt(maxLengthLiteral);
      }
    }
    return -1;
  }