// Create a new api programmatically
String apiFile = config.getServletContext().getRealPath("test/ProgrammaticApi.js");
RegisteredApi api = registry.addApi( "programmaticApi", "test/ProgrammaticApi.js", apiFile, "Djn.programmaticNamespace", "Djn.programmaticNamespace" );
// Register a new action with a method
RegisteredAction action = api.addAction( CustomRegistryConfiguratorHandlingTest.class, "MyCustomRegistryConfiguratorHandlingTest");
Method m = getMethod( CustomRegistryConfiguratorHandlingTest.class, "test_programmaticMethod", String.class);
action.addStandardMethod( "myProgrammaticMethod", m, false);
// Register a poll method
Method pm = getMethod( CustomRegistryConfiguratorHandlingTest.class, "test_programmaticPollMethod", Map.class);