...yes, but there's no special CaptainCasa-related issue:
In you server side code load the literal (ResourceManager.readProperty()) and then apply rule in the way you define:
Code:
...
// messageSaved = Document ${doc} was saved.
String l = ResourceManager.readProperty("literals","messageSaved");
l = l.replace("${doc}",m_documentNumber);
...
Björn