Adapting SSO Authentication SAML in legacy java web servlet application

I am maintain legacy java web application using jsp/servlet framework.

How can I integrate the SSO Authentication with SAML into this legacy application?

Is there any reference/document can I study?