class ExternalInterfaceDaoHelper {

    public ExternalInterfaceEntity getExternalInterfaceEntity(String externalInterfaceName)
    {
        ExternalInterfaceEntity externalInterfaceEntity = externalInterfaceDao.getExternalInterfaceByName(externalInterfaceName);

        if (externalInterfaceEntity == null)
        {
            throw new ObjectNotFoundException(String.format("External interface with name \"%s\" doesn't exist.", externalInterfaceName));
        }

        return externalInterfaceEntity;
    }

}