MwMleSourceJpaController mleSourceJpaController = new MwMleSourceJpaController(getEntityManagerFactory());
MwMleSource mwMleSource = mleSourceJpaController.findByMleId(tblMle.getId());
// If the mapping does not exist, it is ok. We don't need to worry. Actually for MLES
// configured manully, this entry does not exist.
if (mwMleSource != null)
mleSourceJpaController.destroy(mwMleSource.getId());
} catch (ASException ase) {
throw ase;
} catch (Exception e) {
throw new ASException(e);