to work from command line
a logic to save locally has been moved to JBossModule