String username = "anonymous";
String password = "anonymous";
try {
if (_instance == null) {
Connector connector = config.getConnectors().getConnector(0);
SchemeType scheme = connector.getScheme();
String url = ConfigHelper.getAdminURL(scheme, config);
SecurityConfiguration security =
config.getSecurityConfiguration();
if (security.getSecurityEnabled()) {