public static void registerTaskService(String name, TaskService taskService,
String host, String username, String password)
throws SecurityException, RemoteException, ClassNotFoundException,
JobExecutionException, LoginException, NotBoundException, ProtocolVersionException {
JobService service = connect(host, username, password);
service.registerTaskService(name, taskService);
}