public void endpointDeactivation(final MessageEndpointFactory messageEndpointFactory, final ActivationSpec activationSpec) {
final EmailAccountInfo accountInfo = (EmailAccountInfo) activationSpec;
final EmailConsumer emailConsumer = consumers.remove(accountInfo.getAddress());
final MessageEndpoint endpoint = (MessageEndpoint) emailConsumer;
endpoint.release();
}
public XAResource[] getXAResources(final ActivationSpec[] activationSpecs) throws ResourceException {
return new XAResource[0];
}