ResourceContainer: invoke arbitrary methods on object construction