code: public ObjectEndpoint export(Object server, Class<?> clazz) {
  		// If clazz isn't specified than export all methods on a object
  		if (clazz == null) {
  			clazz = (Class<?>) server.getClass();
  		}
  
  		for (Method m : clazz.getMethods()) {
  			// Ignore all java.lang.Object methods
  			if (Object.class.equals(m.getDeclaringClass())) {
  				continue;
  			}
  			MethodEndpoint method = new MethodEndpoint(m, server, null, faultMapper, typeConverter);
  			String name = method.getMethodName();
  			if (prefix != null) {
  				name = prefix + "." + name;
  			}
  			if (methods.containsKey(name)) {
  				throw new IllegalArgumentException("methods " + m + " and " + methods.get(name) + " are exported as "
  						+ name);
  			}
  			methods.put(name, method);
  		}
  
  		return this;
  	}
docs: Exports public methods annotated by {@link XRMethod} declared on a clazz.
  
  @param server
  object instance exposing XML-RPC methods
  @param clazz
  to export methods from
  @return this instance for call chaining.