Implementation of the CTP protocol with Java Restfull web services