code: private void validateRelationship(String baseTableName,
  			String relatedTableName, RelationType relationType) {
  
  		if (relationType != null) {
  
  			if (!geoPackage.isTableType(relationType.getDataType(),
  					relatedTableName)) {
  				throw new GeoPackageException("The related table must be a "
  						+ relationType.getDataType()
  						+ " table. Related Table: " + relatedTableName
  						+ ", Type: "
  						+ geoPackage.getTableType(relatedTableName));
  			}
  
  		}
  
  	}
docs: Determine if the relation type is valid between the base and related
  table
  
  @param baseTableName
  base table name
  @param relatedTableName
  related table name
  @param relationType
  relation type