JAVAMONEY-59: Added class parameter to getValidityTypes() for
RelatedValidity services.