throw new Exception("Error in implementation class.");
}
if (obj instanceof RequestSecurityTokenResponseCollectionType) {
RequestSecurityTokenResponseCollectionType tokenResponse =
(RequestSecurityTokenResponseCollectionType)obj;
response = new JAXBSource(jaxbContext,
new ObjectFactory()
.createRequestSecurityTokenResponseCollection(tokenResponse));
} else {
RequestSecurityTokenResponseType tokenResponse =
(RequestSecurityTokenResponseType)obj;
response = new JAXBSource(jaxbContext,
new ObjectFactory()
.createRequestSecurityTokenResponse(tokenResponse));
}
} catch (InvocationTargetException ex) {