shouldn't something like this do the trick?
Index: picketlink-core/src/main/java/org/picketlink/identity/federation/web/servlets/saml/MetadataServlet.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- picketlink-core/src/main/java/org/picketlink/identity/federation/web/servlets/saml/MetadataServlet.java (date 1375774867000) +++ picketlink-core/src/main/java/org/picketlink/identity/federation/web/servlets/saml/MetadataServlet.java (revision ) @@ -110,7 +110,7 @@ signingAlias = config.getInitParameter("signingAlias"); encryptingAlias = config.getInitParameter("encryptingAlias"); - ProviderType providerType = ConfigurationUtil.getIDPConfiguration(is); + ProviderType providerType = ConfigurationUtil.getConfiguration(is).getIdpOrSP(); metadataProviderType = providerType.getMetaDataProvider(); String fqn = metadataProviderType.getClassName(); Class<?> clazz = SecurityActions.loadClass(getClass(), fqn); \ No newline at end of file
shouldn't something like this do the trick?