public PicketLinkSubsystemMetrics getMetrics() {
if (this.metrics == null) {
synchronized (this) {
if (this.metrics == null) {
try {
this.metrics = new PicketLinkSubsystemMetrics(((ProviderConfiguration) getPicketLinkType().getIdpOrSP()).getSecurityDomain());
} catch (ConfigurationException e) {
ROOT_LOGGER.federationErrorCollectingMetric(e);
}
}
}