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 ) ; }
run through all the beans until it is found