I don't understand why this is needed.  I don't think it is.  The S2sProvider object should be retrieved through JPA.