created interface for DeallocationCallback, inner class ResourceBroker.DeallocationCallback now implements it