Added Java example for processors.