if (this.idpMetadataPath.startsWith(CommonHelper.RESOURCE_PREFIX)) {
String path = this.idpMetadataPath.substring(CommonHelper.RESOURCE_PREFIX.length());
if (!path.startsWith("/")) {
path = "/" + path;
}
resource = new ClasspathResource(path);
} else {
resource = new FilesystemResource(this.idpMetadataPath);
}
idpMetadataProvider = new ResourceBackedMetadataProvider(new Timer(true), resource);
} else {