I think that agent C realy has the answer here..
if he is doing it in Java then James could do it in C (since Java is a derivative language)\
and if the Java classes are well defines in Agent Cs code then it would be easy to use it as a reference to create a java program that does exactly what want to do..