class AbstractEntityService {

    public DE getById(String id) throws EntityNotFoundException {
        DE entity = gateway.findById(id);
        if (entity == null) {
            throw new EntityNotFoundException(domainEntityClass, id);
        }
        return entity;
    }

    protected  AbstractEntityService(Class<DE> domainEntityClass, G gateway);

}