/** Creates a new client class, which is invoking the given
* server side class <code>pSource</code>.
*/
public JavaSource addClass(JavaSource pSource, JavaSourceResolver pResolver)
throws SecurityException, NoSuchMethodException {
JavaSource js = getFactory().newJavaSource(JavaQNameImpl.getInstance(getTargetPackage(), pSource.getQName().getClassName()), JavaSource.PUBLIC);
JavaField jf = getXmlRpcCaller(js);
getConstructor(js, jf);
Map keys = new HashMap();
addMethods(js, pSource, keys, jf, pResolver);
return js;