class CollectingNameClassPairCallbackHandler implements
        NameClassPairCallbackHandler {

    public final void handleNameClassPair(NameClassPair nameClassPair) throws NamingException {
        list.add(getObjectFromNameClassPair(nameClassPair));
    }

}