fixed the JIRA issue: https://wso2.org/jira/browse/REGISTRY-2266