Changed BEA to handle entity types as parameters.