private static ClientSecurityContext generateDefaultSecurityContext() {
final String PRINCIPAL_NAME = "auth.default.principal.name";
final String PRINCIPAL_PASS = "auth.default.principal.password";
ServerConfiguration config = ServerConfiguration.getConfiguration();
String username = config.getProperty(PRINCIPAL_NAME, "guest");
String password = config.getProperty(PRINCIPAL_PASS, "guest123");
synchronized (ClientSecurityContext.class) {
// login & all that stuff..
try {
final Subject subject = new Subject();