Java Republic, the Dublin-based roastery supplying cafés, restaurants, hotels and offices, has returned to profit despite the soaring cost of coffee beans, which have hammered the broader sector.