class PublisherTypeHandlerSelector {

    public PublisherTypeHandler getTypeHandlerFrom(PublisherData publisherData) {
        String inputPublisherDataType = publisherData.getType();
        for (Iterator<PublisherTypeHandler> iterator = notificationTypeHandler.iterator(); iterator.hasNext();) {
            PublisherTypeHandler notificationTypeHandler = iterator.next();
            if (notificationTypeHandler.getPublisherDataType().equals(inputPublisherDataType)) {
                return notificationTypeHandler;
            }
        }
        return new UnknownPublisherTypeHandler();
    }

    public  PublisherTypeHandlerSelector();

}