if (rawOptions.containsKey(STS_CONFIG_FILE)) {
builder = new Builder(this.stsConfigurationFile);
client = STSClientFactory.getInstance(maxClientsInPool).create(initialNumberOfClients, builder.build());
} else {
builder = new Builder();
builder.endpointAddress((String) rawOptions.get(ENDPOINT_ADDRESS));
builder.portName((String) rawOptions.get(PORT_NAME)).serviceName((String) rawOptions.get(SERVICE_NAME));
builder.username((String) rawOptions.get(USERNAME_KEY)).password((String) rawOptions.get(PASSWORD_KEY));
String passwordString = (String) rawOptions.get(PASSWORD_KEY);
if (passwordString != null && passwordString.startsWith(PicketLinkFederationConstants.PASS_MASK_PREFIX)) {