I could add resource like this;
ProtectedResource resourceClient = authzClient.protection().resource(); ResourceRepresentation resource= new ResourceRepresentatio