I am creating a REST web service project in Java (but the question is not related with just Java) which have several endpoints for different purposes and have same source. And I