code: public Bean findBean(String tableOriginalName) {
  		for (Package myPackage : this.packages) {
  			for (Bean bean : myPackage.beans) {
  				if (bean.table.originalName.equals(tableOriginalName)) {
  					return bean;
  				}
  			}
  		}
  		throw new BeanNotFoundException("invalid table reference : " + tableOriginalName);
  	}
docs: run through all the beans until it is found
  @param tableOriginalName the original table name
  @return
  @throws BeanNotFoundException if no bean which associated table has the corresponding name