public static SecurityConfiguration buildTestConfiguration()
        {
            SecurityConfiguration answer = new SecurityConfiguration(Subject.TEST_REALM, null);
            answer.addClient(Subject.TEST);

            return answer;
        }
        public static SecurityConfiguration build(SecurityAdapter identifierProvider, ConfigurationService configurationService)
        {
            JsonObject bundleData = configurationService.getBundle(SimpleSecurityAdapter.BUNDLE_NAME);

            SecurityConfiguration answer = null;

            if (null != bundleData)
            {
                if (bundleData.Contains("identifier"))
                {
                    answer = new SecurityConfiguration(bundleData, configurationService);
                    return answer;
                }
            }

            String identifer = identifierProvider.getIdentifier();
            log.debug(identifer, "identifer");

            answer = new SecurityConfiguration(identifer, configurationService);
            answer.save(); // ensure we persist the newly created 'identifer'

            return answer;
        }