final String[] actionNames = { "Send to demo app" };
final ActionNameMap[] actionNameMaps =
{ new ActionNameMap(actions, actionNames, "en") };
// Get access to the registry
final Registry registry = Registry.getRegistry(CLASSNAME);
try {
// Register as a content handler
registry.register(CLASSNAME, types, suffixes, actions,
actionNameMaps, ID, null);
} catch (final ContentHandlerException che) {
System.out.println("Registry#register() threw " + che.toString());
} catch (final ClassNotFoundException cnfe) {
System.out.println("Registry#register() threw " + cnfe.toString());