public class Client {
public static void main(String[] args) throws HttpException, IOException {
String baseURL = "http://localhost:8642/cgi-bin/WebObjects/RESTExample.woa/ra";
ERXRestNameRegistry.registry().setExternalNameForInternalName("Company", "ClientCompany");
IERXRestDelegate.Factory.setDefaultDelegate(new ERXNoOpRestDelegate());
IERXRestDelegate.Factory.setDelegateForEntityNamed(new ClientCompanyRestDelegate(), "ClientCompany", ClientCompany.class);
ERXRestClient client = new ERXRestClient(baseURL, new ERXRestContext());
ClientCompany c = client.objectWithPath("Company/1.json");
System.out.println("Client.main: single company = " + c);