private void validationInfo(
      StringBuffer stringBuffer, String fileName, String fileItemFieldName, long size) {
    FileData fileData = FileData.getInstance();

    if (size > fileData.MINIMAGEFILESIZE) {
      if (fileItemFieldName.compareTo(BasicItemData.IMAGE) == 0) {
        if (size < fileData.MAXIMAGEFILESIZE) {
          if (!StringValidationUtil.getInstance()
              .isValidRequired(fileName, fileData.MINLEN, fileData.MAXLEN)) {
            stringBuffer.append("FileName must be >");
            stringBuffer.append(fileData.MINLEN);
            stringBuffer.append("and <");
            stringBuffer.append(fileData.MAXLEN);
            stringBuffer.append("<br />");
          }
        } else {
          stringBuffer.append("Image File Is Not The Right Size. ");
          stringBuffer.append(fileData.MINIMAGEFILESIZE);
          stringBuffer.append("< > ");
          stringBuffer.append(fileData.MAXIMAGEFILESIZE);
          stringBuffer.append("<br />");
        }
      }
    }
  }
  private Boolean isValid(String fileName, long size) throws Exception {
    FileData fileData = FileData.getInstance();

    if (size > fileData.MINIMAGEFILESIZE) {
      if (size < fileData.MAXIMAGEFILESIZE) {
        if (!StringValidationUtil.getInstance()
            .isValidRequired(fileName, fileData.MINLEN, fileData.MAXLEN)) {
          return Boolean.FALSE;
        }
      } else {
        if (abcs.logic.communication.log.config.type.LogConfigTypes.LOGGING.contains(
            abcs.logic.communication.log.config.type.LogConfigType.VIEW)) {
          StringBuffer stringBuffer = new StringBuffer();

          stringBuffer.append("File Size To Large: ");
          stringBuffer.append(size);
          stringBuffer.append(">");
          stringBuffer.append(fileData.MAXIMAGEFILESIZE);

          LogUtil.put(LogFactory.getInstance(stringBuffer.toString(), this, "isValid()"));
        }
        return Boolean.FALSE;
      }
      this.processImageFiles();
    }
    return Boolean.TRUE;
  }