I’m working on a plugin for Confluence and it uses this function to get a space :
Space space = aSpaceManager.getSpace(((PageContext) renderContext).getSpaceKey());
But as I saw in the documentation : SpaceManager (Atlassian Confluence 7.4.7 API)
It’s deprecated and I don’t understand how SpaceService or SpaceManagerInternal work…
Could you help me please ? Do you have some example ?
Thanks a lot