We would like to use the Spartacus framework with version 2005 of Sap Commerce Cloud (Hybris). There is a custom commercewebservices (created from ycommercewebservices) extension that is already in use. We don't want to touch it.
Based on the following documentation, here are the steps for version 2005.
1) Create a new custom extension from yocc. Let's call it xxxocc.
xxxocc requires commercewebservices with the webcontext /occ
2) xxxocc should require out of the box (OOTB) cmsocc to get cms pages and components info for Spartacus.
cmsocc requires commercewebservices with the webcontext /occ.
Current custom commercewebservices has its own commercewebservices settings with the webcontext /rest.
After creating a new extension from yocc(xxxocc), custom commercewebservices has a lot of conflicts with the new one. (commerceStockFacade, security settings, contextInformationLoader etc.)
We could resolve these issues with big efforts but after requiring cmsocc in the xxxocc extension, the same errors are going to happen again because the cmsocc has also its own commercewebservices, and resolving issues for the cmsocc extension is not possible without making it a custom extension like xxxcmsocc.
What should be the best approach to use the current commercewebservices along with the new extension in a project?