if (!(jsps instanceof JamServiceContextImpl)) {
throw new IllegalArgumentException
("JamServiceParams must be instantiated by this JamServiceFactory.");
}
//create and return the service
JamClassLoader clToUse = createClassLoader((JamServiceContextImpl)jsps);
//this is a nasty way to shoehorn it in there, should do better
((JamServiceContextImpl)jsps).setClassLoader(clToUse);
return new JamServiceImpl((ElementContext)jsps,