@Override
public void undeployResource(Object resource) throws Exception {
final MailSessionDescriptor desc = (MailSessionDescriptor) resource;
String resourceName = ConnectorsUtil.deriveResourceName(desc.getResourceId(), desc.getName(),desc.getResourceType());
MailResource mailResource = new MyMailResource(desc, resourceName);
getDeployer(mailResource).undeployResource(mailResource);
_logger.log(Level.FINE, "Mail-Session resource is undeployed having resource-name [" + desc.getName() + "]");
}