Added possibility create custom Sid

This pull request contains changes concerning [SEC-2201](https://jira.spring.io/browse/SEC-2201).
The changes were made according [this description](https://jira.spring.io/browse/SEC-2201?focusedCommentId=100569&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-100569).