final PrimaryKeySearch pks = (PrimaryKeySearch) search;
e = loadEntityByPrimaryKey(pks, payload.getStatus());
et = pks.getKey().getEntityType();
}
else if(search instanceof BusinessKeySearch) {
final BusinessKeySearch bks = (BusinessKeySearch) search;
e = loadEntityByBusinesKey(bks, payload.getStatus());
et = bks.getEntityType();
}
else if(search instanceof EntityNameSearch) {
final EntityNameSearch ens = (EntityNameSearch) search;
e = loadEntityByName(ens, payload.getStatus());
et = ens.getEntityType();