code: public static Version getVersionForDimensions(int numRows, int numColumns) throws FormatException {
      if ((numRows & 0x01) != 0 || (numColumns & 0x01) != 0) {
        throw FormatException.getFormatInstance();
      }
  
      for (Version version : VERSIONS) {
        if (version.symbolSizeRows == numRows && version.symbolSizeColumns == numColumns) {
          return version;
        }
      }
  
      throw FormatException.getFormatInstance();
    }
docs: <p>Deduces version information from Data Matrix dimensions.</p>
  
  @param numRows Number of rows in modules
  @param numColumns Number of columns in modules
  @return Version for a Data Matrix Code of those dimensions
  @throws FormatException if dimensions do correspond to a valid Data Matrix size